es.reflect.is-extensible.js 470 B

1234567891011121314
  1. var $ = require('../internals/export');
  2. var anObject = require('../internals/an-object');
  3. // eslint-disable-next-line es/no-object-isextensible -- safe
  4. var objectIsExtensible = Object.isExtensible;
  5. // `Reflect.isExtensible` method
  6. // https://tc39.es/ecma262/#sec-reflect.isextensible
  7. $({ target: 'Reflect', stat: true }, {
  8. isExtensible: function isExtensible(target) {
  9. anObject(target);
  10. return objectIsExtensible ? objectIsExtensible(target) : true;
  11. }
  12. });