Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.object.define-property.js 478B

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. });