Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/SpeciesConstructor.js
r0c6b92a r79a0317 7 7 8 8 var IsConstructor = require('./IsConstructor'); 9 var Type = require('./Type'); 9 10 var isObject = require('../helpers/isObject'); 10 11 11 12 // https://262.ecma-international.org/6.0/#sec-speciesconstructor 12 13 13 14 module.exports = function SpeciesConstructor(O, defaultConstructor) { 14 if ( Type(O) !== 'Object') {15 if (!isObject(O)) { 15 16 throw new $TypeError('Assertion failed: Type(O) is not Object'); 16 17 } … … 19 20 return defaultConstructor; 20 21 } 21 if ( Type(C) !== 'Object') {22 if (!isObject(C)) { 22 23 throw new $TypeError('O.constructor is not an Object'); 23 24 }
Note:
See TracChangeset
for help on using the changeset viewer.