web 3d图形渲染器
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.

15 lines
585 B

  1. var $ = require('../internals/export');
  2. var fails = require('../internals/fails');
  3. var isObject = require('../internals/is-object');
  4. // eslint-disable-next-line es/no-object-isextensible -- safe
  5. var $isExtensible = Object.isExtensible;
  6. var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });
  7. // `Object.isExtensible` method
  8. // https://tc39.es/ecma262/#sec-object.isextensible
  9. $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
  10. isExtensible: function isExtensible(it) {
  11. return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
  12. }
  13. });