Skip to content

Commit

Permalink
update iterator helpers tests that passed even in noncompliant impls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra authored and ptomato committed Aug 24, 2023
1 parent e273cd4 commit 9efb4f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ assert.sameValue(done, true);
assert.throws(TypeError, function() {
iterator.reduce(() => {});
});

iterator.reduce(() => {}, 0);
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ let iterator = (function* () {
assert.throws(TypeError, function () {
iterator.reduce(nonCallable);
});

iterator.reduce(() => {});

0 comments on commit 9efb4f8

Please sign in to comment.