Sha256: e4d02c510feac5ce4e4efe5b83fd6e98e9658b46c0e9acdfe4115d9de2377a0f

Contents?: true

Size: 799 Bytes

Versions: 64

Compression:

Stored size: 799 Bytes

Contents

// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
var dP = require('./_object-dp');
var $export = require('./_export');
var anObject = require('./_an-object');
var toPrimitive = require('./_to-primitive');

// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
$export($export.S + $export.F * require('./_fails')(function () {
  // eslint-disable-next-line no-undef
  Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
}), 'Reflect', {
  defineProperty: function defineProperty(target, propertyKey, attributes) {
    anObject(target);
    propertyKey = toPrimitive(propertyKey, true);
    anObject(attributes);
    try {
      dP.f(target, propertyKey, attributes);
      return true;
    } catch (e) {
      return false;
    }
  }
});

Version data entries

64 entries across 29 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.41 node_modules/core-js/library/modules/es6.reflect.define-property.js
immosquare-cleaner-0.1.41 node_modules/core-js/modules/es6.reflect.define-property.js
immosquare-cleaner-0.1.40 node_modules/core-js/modules/es6.reflect.define-property.js
immosquare-cleaner-0.1.40 node_modules/core-js/library/modules/es6.reflect.define-property.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.reflect.define-property.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/modules/es6.reflect.define-property.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/library/modules/es6.reflect.define-property.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/modules/es6.reflect.define-property.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/library/modules/es6.reflect.define-property.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/modules/es6.reflect.define-property.js