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.

20 lines
504 B

  1. 'use strict';
  2. var GetIntrinsic = require('get-intrinsic');
  3. var $Object = GetIntrinsic('%Object%');
  4. var isPrimitive = require('../helpers/isPrimitive');
  5. var $preventExtensions = $Object.preventExtensions;
  6. var $isExtensible = $Object.isExtensible;
  7. // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
  8. module.exports = $preventExtensions
  9. ? function IsExtensible(obj) {
  10. return !isPrimitive(obj) && $isExtensible(obj);
  11. }
  12. : function IsExtensible(obj) {
  13. return !isPrimitive(obj);
  14. };