Make iterator sequencing test more explicit

The next() method is not supposed to get called. Per discussion here:
https://github.com/tc39/test262/pull/4326#discussion_r2371763680
This commit is contained in:
Ben Noordhuis 2025-09-23 21:52:42 +02:00 committed by Philip Chimento
parent 2f06e0b6b3
commit 409001b61b

View File

@ -10,10 +10,7 @@ features: [iterator-sequencing]
let testIterator = {
next() {
return {
done: false,
value: 1,
};
throw new Test262Error();
},
return() {
throw new Test262Error();