Skip to content

Commit ac5999d

Browse files
committed
add missed compat subtest for Iterator#take
1 parent c5d4f6a commit ac5999d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/compat/tests.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,10 @@ GLOBAL.tests = {
841841
return true;
842842
}],
843843
'es.iterator.some': checkIteratorClosingOnEarlyError('some', TypeError),
844-
'es.iterator.take': checkIteratorClosingOnEarlyError('take', RangeError),
844+
'es.iterator.take': [
845+
iteratorHelperThrowsErrorOnInvalidIterator('take', 1),
846+
checkIteratorClosingOnEarlyError('take', RangeError)
847+
],
845848
'es.iterator.to-array': function () {
846849
return Iterator.prototype.toArray;
847850
},

0 commit comments

Comments
 (0)