Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2015/IteratorComplete.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var ToBoolean = require('./ToBoolean'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/6.0/#sec-iteratorcomplete 10 11 11 12 module.exports = function IteratorComplete(iterResult) { 12 if ( Type(iterResult) !== 'Object') {13 if (!isObject(iterResult)) { 13 14 throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); 14 15 }
Note:
See TracChangeset
for help on using the changeset viewer.