We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Iterator#take
1 parent c5d4f6a commit ac5999dCopy full SHA for ac5999d
tests/compat/tests.js
@@ -841,7 +841,10 @@ GLOBAL.tests = {
841
return true;
842
}],
843
'es.iterator.some': checkIteratorClosingOnEarlyError('some', TypeError),
844
- 'es.iterator.take': checkIteratorClosingOnEarlyError('take', RangeError),
+ 'es.iterator.take': [
845
+ iteratorHelperThrowsErrorOnInvalidIterator('take', 1),
846
+ checkIteratorClosingOnEarlyError('take', RangeError)
847
+ ],
848
'es.iterator.to-array': function () {
849
return Iterator.prototype.toArray;
850
},
0 commit comments