Skip to content

Fix missing parsingContext restore at return in parseDelimitedList #48999

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

Merged
merged 3 commits into from
May 6, 2022

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented May 6, 2022

In #48493, parseDelimitedList gained an early return, but the parsing context should have been restored as it does at the existing return site. This led to the parameter parsing context being left on at the top level, which prevented statement list parsing from eating trailing tokens properly.

Fixes #48993

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 6, 2022
@jakebailey jakebailey merged commit 8d0393d into microsoft:main May 6, 2022
@jakebailey jakebailey deleted the fix-weird-crash branch May 6, 2022 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug assertion in parseSourceFileWorker on broken code after #48493
3 participants