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

Update ongoing promise in async iterator return() method #268

Closed
MattiasBuelens opened this issue Feb 11, 2024 · 0 comments · Fixed by #269
Closed

Update ongoing promise in async iterator return() method #268

MattiasBuelens opened this issue Feb 11, 2024 · 0 comments · Fixed by #269

Comments

@MattiasBuelens
Copy link
Contributor

There's an edge case with the current Web IDL bindings for async iterators where manually calling return(); next() could result in the next() promise resolving before the return() promise. The latest version of the Web IDL specification fixes this by updating the "ongoing promise" in the async iterator return() method.

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 a pull request may close this issue.

1 participant