es.object.define-property.js 478 B

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