-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Parsing bug w/ do while
found by parser/fuzz/module_roundtrip_structured
#171
Comments
Another example I think:
sounds like the actual JS is a bit angry at runtime, since the async fn doesn't count as a constructor, but I think it's syntactically correct. The printed version (output1) is also close to what biome and prettier output. |
Sounds like Lines 502 to 522 in 245d530
needs to allow regex as a name for variables, or there's a bug somewhere where it initially thinks it can permit regex as names for variables |
ezno/parser/fuzz/fuzz_targets/module_roundtrip_structured.rs
Lines 31 to 35 in 245d530
It looks like the parse and print removes the parentheses from the do statement, which causes Ezno to interpret the first
/
as a "divide" statement.Biome Playground of
input
: https://biomejs.dev/playground/?code=ZABvACAAKAAvAGEALwBkACkAOwAgAHcAaABpAGwAZQAgACgAdABoAGkAcwApADsACgA%3DBiome Playground of
output1
: https://biomejs.dev/playground/?code=ZABvACAALwBhAC8AZAA7ACAAdwBoAGkAbABlACAAKAB0AGgAaQBzACkAOwAKAA%3D%3DThe text was updated successfully, but these errors were encountered: