Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/GetIteratorFromMethod.js
r0c6b92a r79a0317 6 6 var Get = require('./Get'); 7 7 var IsCallable = require('./IsCallable'); 8 var Type = require('./Type'); 8 9 var isObject = require('../helpers/isObject'); 9 10 10 11 // https://262.ecma-international.org/15.0/#sec-getiteratorfrommethod … … 16 17 17 18 var iterator = Call(method, obj); // step 1 18 if ( Type(iterator) !== 'Object') {19 if (!isObject(iterator)) { 19 20 throw new $TypeError('iterator must return an object'); // step 2 20 21 }
Note:
See TracChangeset
for help on using the changeset viewer.