es.object.define-property.js 464 B

12345678910
  1. var $ = require('../internals/export');
  2. var DESCRIPTORS = require('../internals/descriptors');
  3. var defineProperty = require('../internals/object-define-property').f;
  4. // `Object.defineProperty` method
  5. // https://tc39.es/ecma262/#sec-object.defineproperty
  6. // eslint-disable-next-line es/no-object-defineproperty -- safe
  7. $({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
  8. defineProperty: defineProperty
  9. });