-
Notifications
You must be signed in to change notification settings - Fork 896
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
Bug in exponential operator #384
Comments
I'm going to take a look at this, will see how far I get. |
Gave this a shot and couldn't get very far. It seems like |
Does |
That parses just fine because of the parens (same escape hatch for all other unary operators). |
I think attached patch should take care of this. Take a look. |
Thanks! |
@marijnh Thanks, when is a release planned that includes this fix? |
I just published 3.0.4. |
👍 thank you! |
When using Acorn 3.0.2 and ecmaVersion 7, the following code throws an error but should not:
The grammar specifically allows both
++
and--
in the base position:The grammar is as follows (per this comment):
The text was updated successfully, but these errors were encountered: