tc39 / proposal-joint-iteration

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

close iterators when GetOwnProperty throws #36

Closed bakkot closed 1 week ago

bakkot commented 1 week 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.