Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2021/AsyncFromSyncIteratorContinuation.js
r0c6b92a r79a0317 7 7 var $Promise = GetIntrinsic('%Promise%', true); 8 8 9 var callBound = require('call-b ind/callBound');9 var callBound = require('call-bound'); 10 10 11 11 var CreateIterResultObject = require('./CreateIterResultObject'); … … 13 13 var IteratorValue = require('./IteratorValue'); 14 14 var PromiseResolve = require('./PromiseResolve'); 15 var Type = require('./Type'); 15 16 var isObject = require('../helpers/isObject'); 16 17 17 18 var $then = callBound('Promise.prototype.then', true); … … 20 21 21 22 module.exports = function AsyncFromSyncIteratorContinuation(result) { 22 if ( Type(result) !== 'Object') {23 if (!isObject(result)) { 23 24 throw new $TypeError('Assertion failed: Type(O) is not Object'); 24 25 }
Note:
See TracChangeset
for help on using the changeset viewer.