Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2017/ObjectCreate.js
r0c6b92a r79a0317 8 8 9 9 var IsArray = require('./IsArray'); 10 var Type = require('./Type');11 10 12 11 var forEach = require('../helpers/forEach'); 12 var isObject = require('../helpers/isObject'); 13 13 14 14 var SLOT = require('internal-slot'); … … 19 19 20 20 module.exports = function ObjectCreate(proto, internalSlotsList) { 21 if (proto !== null && Type(proto) !== 'Object') {21 if (proto !== null && !isObject(proto)) { 22 22 throw new $TypeError('Assertion failed: `proto` must be null or an object'); 23 23 }
Note:
See TracChangeset
for help on using the changeset viewer.