Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/IteratorClose.js
r0c6b92a r79a0317 7 7 var GetMethod = require('./GetMethod'); 8 8 var IsCallable = require('./IsCallable'); 9 var Type = require('./Type');10 9 10 var isObject = require('../helpers/isObject'); 11 11 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 12 12 … … 17 17 throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1 18 18 } 19 if ( Type(iteratorRecord['[[Iterator]]']) !== 'Object') {19 if (!isObject(iteratorRecord['[[Iterator]]'])) { 20 20 throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 1 21 21 } … … 55 55 completionThunk = null; // ensure it's not called twice. 56 56 57 if ( Type(innerResult) !== 'Object') {57 if (!isObject(innerResult)) { 58 58 throw new $TypeError('iterator .return must return an object'); 59 59 }
Note:
See TracChangeset
for help on using the changeset viewer.