Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/ArraySpeciesCreate.js
r0c6b92a r79a0317 5 5 var $species = GetIntrinsic('%Symbol.species%', true); 6 6 var $TypeError = require('es-errors/type'); 7 var isInteger = require('math-intrinsics/isInteger'); 7 8 8 9 var ArrayCreate = require('./ArrayCreate'); … … 10 11 var IsArray = require('./IsArray'); 11 12 var IsConstructor = require('./IsConstructor'); 12 var Type = require('./Type');13 13 14 var is Integer = require('../helpers/isInteger');14 var isObject = require('../helpers/isObject'); 15 15 16 16 // https://262.ecma-international.org/12.0/#sec-arrayspeciescreate … … 32 32 // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ? 33 33 // } 34 if ($species && Type(C) === 'Object') {34 if ($species && isObject(C)) { 35 35 C = Get(C, $species); 36 36 if (C === null) {
Note:
See TracChangeset
for help on using the changeset viewer.