Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2020/CreateAsyncFromSyncIterator.js
r0c6b92a r79a0317 14 14 var IteratorNext = require('./IteratorNext'); 15 15 var OrdinaryObjectCreate = require('./OrdinaryObjectCreate'); 16 var Type = require('./Type');17 16 17 var isObject = require('../helpers/isObject'); 18 18 var isIteratorRecord = require('../helpers/records/iterator-record-2023'); 19 19 … … 70 70 result = Call(iteratorReturn, syncIterator); // step 9.a 71 71 } 72 if ( Type(result) !== 'Object') { // step 1172 if (!isObject(result)) { // step 11 73 73 Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a 74 74 return; … … 106 106 result = Call(throwMethod, syncIterator); // step 9.a 107 107 } 108 if ( Type(result) !== 'Object') { // step 11108 if (!isObject(result)) { // step 11 109 109 Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a 110 110 return;
Note:
See TracChangeset
for help on using the changeset viewer.