Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2022/AddEntriesFromIterable.js
r0c6b92a r79a0317 13 13 var IteratorValue = require('./IteratorValue'); 14 14 var ThrowCompletion = require('./ThrowCompletion'); 15 var Type = require('./Type'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 // https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable … … 31 32 } 32 33 var nextItem = IteratorValue(next); 33 if ( Type(nextItem) !== 'Object') {34 if (!isObject(nextItem)) { 34 35 var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); 35 36 return IteratorClose(iteratorRecord, error);
Note:
See TracChangeset
for help on using the changeset viewer.