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

close iterators when GetOwnProperty throws #36

Closed bakkot closed 3 weeks ago

bakkot commented 4 weeks ago

I assume this was just an oversight; we handle throwy getters already, but not throwy proxy traps for GetOwnProperty. This can only be exercised if the first call to GetOwnProperty succeeds and returns an iterable and then a later one throws, but that can happen.