update iterator helpers tests that passed even in noncompliant impls

This commit is contained in:
Michael Ficarra 2023-08-24 13:38:05 -06:00 committed by Philip Chimento
parent e273cd470a
commit 9efb4f8e53
2 changed files with 4 additions and 0 deletions

View File

@ -19,3 +19,5 @@ assert.sameValue(done, true);
assert.throws(TypeError, function() {
iterator.reduce(() => {});
});
iterator.reduce(() => {}, 0);

View File

@ -18,3 +18,5 @@ let iterator = (function* () {
assert.throws(TypeError, function () {
iterator.reduce(nonCallable);
});
iterator.reduce(() => {});