Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2018/IteratorNext.js
r0c6b92a r79a0317 4 4 5 5 var Invoke = require('./Invoke'); 6 var Type = require('./Type'); 6 7 var isObject = require('../helpers/isObject'); 7 8 8 9 // https://262.ecma-international.org/6.0/#sec-iteratornext … … 10 11 module.exports = function IteratorNext(iterator, value) { 11 12 var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); 12 if ( Type(result) !== 'Object') {13 if (!isObject(result)) { 13 14 throw new $TypeError('iterator next must return an object'); 14 15 }
Note:
See TracChangeset
for help on using the changeset viewer.