tc39 / proposal-joint-iteration

a TC39 proposal to synchronise the advancement of multiple iterators
https://tc39.es/proposal-joint-iteration
70 stars 2 forks source link

fix call to IteratorClose #37

Closed bakkot closed 1 month ago

bakkot commented 1 month ago

Same issue as https://github.com/tc39/ecma262/pull/3457: if you're calling IteratorClose to close some things not because you've encountered a return/throw, but just because you're done with it, then the second argument needs to be a normal completion, not a return completion.