Skip to content

Reset error variable in downlevel for-await-of loop#38170

Merged
rbuckton merged 2 commits intomasterfrom
fix36166
Apr 24, 2020
Merged

Reset error variable in downlevel for-await-of loop#38170
rbuckton merged 2 commits intomasterfrom
fix36166

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

This ensures we reset the temporary error record variable in a for-await-of loop contained in another loop.

Fixes #36166

@rbuckton
Copy link
Copy Markdown
Contributor Author

I also switched the existing emitter.forAwait.esNNNN.ts tests to use the multi-value // @target: option.

@rbuckton rbuckton merged commit 968943f into master Apr 24, 2020
@rbuckton rbuckton deleted the fix36166 branch April 24, 2020 21:59
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncIterableIterator results in repeated exceptions if target <= ES2017

3 participants