Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2019/ArraySpeciesCreate.js
r0c6b92a r79a0317 6 6 var $species = GetIntrinsic('%Symbol.species%', true); 7 7 var $TypeError = require('es-errors/type'); 8 var isInteger = require('math-intrinsics/isInteger'); 8 9 9 10 var Get = require('./Get'); 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/6.0/#sec-arrayspeciescreate … … 30 30 // Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ? 31 31 // } 32 if ($species && Type(C) === 'Object') {32 if ($species && isObject(C)) { 33 33 C = Get(C, $species); 34 34 if (C === null) {
Note:
See TracChangeset
for help on using the changeset viewer.