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

fix: handling of of keyword #174

Merged
merged 2 commits into from
May 17, 2024
Merged

fix: handling of of keyword #174

merged 2 commits into from
May 17, 2024

Conversation

guybedford
Copy link
Owner

Fixes a bug introduced in #171 where the of keyword is not a banned keyword so isn't enough to check on its own. Instead this updates the check to verify the paren context to see if we are in a for statement or not instead of having of handled in the isExpressionKeyword function. I also verified again all the keywords in the isExpressionKeyword function are valid failures otherwise so this does fix the root cause.

@guybedford guybedford merged commit 4c1fac8 into main May 17, 2024
1 check passed
@guybedford guybedford deleted the of-fix branch May 17, 2024 19:16
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