Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2015/TestIntegrityLevel.js
r0c6b92a r79a0317 5 5 6 6 var every = require('../helpers/every'); 7 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');7 var OwnPropertyKeys = require('own-keys'); 8 8 9 9 var IsDataDescriptor = require('./IsDataDescriptor'); 10 10 var IsExtensible = require('./IsExtensible'); 11 11 var ToPropertyDescriptor = require('./ToPropertyDescriptor'); 12 var Type = require('./Type'); 12 13 var isObject = require('../helpers/isObject'); 13 14 14 15 // https://262.ecma-international.org/6.0/#sec-testintegritylevel 15 16 16 17 module.exports = function TestIntegrityLevel(O, level) { 17 if ( Type(O) !== 'Object') {18 if (!isObject(O)) { 18 19 throw new $TypeError('Assertion failed: Type(O) is not Object'); 19 20 } … … 22 23 } 23 24 var status = IsExtensible(O); 24 if (status ) {25 if (status || !$gOPD) { 25 26 return false; 26 27 }
Note:
See TracChangeset
for help on using the changeset viewer.