Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close iterators when GetOwnProperty throws #36

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

bakkot
Copy link
Collaborator

@bakkot bakkot commented Oct 27, 2024

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.

@michaelficarra michaelficarra merged commit fa3235b into main Oct 28, 2024
1 check passed
@michaelficarra michaelficarra deleted the guard-throwy-gopd branch October 28, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants