-
Notifications
You must be signed in to change notification settings - Fork 22
Incorrect parenthesization of arrow functions #31
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
Comments
Aside: cr.print(cr.x`foo || bar => bar`).code results in foo || bar for some reason. I guess Acorn silently stops parsing when it sees the invalid |
Rich-Harris
added a commit
that referenced
this issue
Feb 7, 2020
Yeah, Acorn just ignores anything past the first valid expression. Definitely a bug for our situation |
Rich-Harris
added a commit
that referenced
this issue
Feb 7, 2020
failing tests and partial fix for #31
fixed in 0.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
results in
which is syntactically incorrect. The arrow function needs to be wrapped in parentheses. I'm not sure what precedence rules are in play here or what needs changing.
Ref sveltejs/svelte#4384
The text was updated successfully, but these errors were encountered: