Skip to content

Fix async iterator throw/return method invocation#1073

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:async-iter-throw-return
May 26, 2025
Merged

Fix async iterator throw/return method invocation#1073
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:async-iter-throw-return

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Close the iterator when the underlying iterator object lacks a .throw method. Exceptions from the .return method take precedence over the missing method exception.

Close the iterator when the underlying iterator object lacks a .throw
method. Exceptions from the .return method take precedence over the
missing method exception.
@bnoordhuis bnoordhuis merged commit ee364eb into quickjs-ng:master May 26, 2025
127 checks passed
@bnoordhuis bnoordhuis deleted the async-iter-throw-return branch May 26, 2025 06:44
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