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

[runtime] AsyncFromSyncIterator closes the underlying iterator before rejecting #72

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

Hans-Halverson
Copy link
Owner

@Hans-Halverson Hans-Halverson commented Oct 15, 2024

Summary

In tc39/ecma262#2600 AsyncFromSyncIterator was changed to close the underlying sync iterator before rejecting in some cases.

In addition if in AsyncFromSyncIterator.prototype.throw the underlying sync iterator does not have a throw method, threw a new TypeError.

Tests

Fixes all failing AsyncFromSyncIteratorPrototype test262 tests.

@Hans-Halverson Hans-Halverson merged commit 95a0869 into master Oct 15, 2024
2 checks passed
@Hans-Halverson Hans-Halverson deleted the fix-async-from-sync-close-pr branch October 15, 2024 02:11
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.

1 participant