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

for(x of~y); is incorrectly rejected #226

Closed
bakkot opened this issue Sep 30, 2022 · 1 comment · Fixed by #227
Closed

for(x of~y); is incorrectly rejected #226

bakkot opened this issue Sep 30, 2022 · 1 comment · Fixed by #227
Assignees

Comments

@bakkot
Copy link

bakkot commented Sep 30, 2022

Found this with a fuzzer, so feel free to ignore; this didn't come up in real code.

Issue is as the title says: for(x of~y); is a legal program, though not one you'd normally encounter, and meriyah rejects it.

@3cp 3cp self-assigned this Sep 30, 2022
@3cp
Copy link
Member

3cp commented Sep 30, 2022

Should be easy to fix. The problem is the tokenizer didn't separate of~, as for(x of ~y); works fine right now.

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.

2 participants