-
Notifications
You must be signed in to change notification settings - Fork 350
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
missing parentheses in exponentiation with unary left side #1357
Comments
eventualbuddha
added a commit
that referenced
this issue
Aug 10, 2023
yes that fixed it, thanks! |
a bit related but parsing
|
I'm not sure why it's hardcoded to |
coderaiser
pushed a commit
to putoutjs/recast
that referenced
this issue
Aug 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reproduction: https://stackblitz.com/edit/stackblitz-starters-9gkcmv?file=index.js&view=editor
it prints
-1 ** 2
which is invalid syntax:expected:
(-1) ** 2
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence#table 2.
related but not fixed by #363
The text was updated successfully, but these errors were encountered: