-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Using Object shorthand with a prop named "async" results in a parse error #340
Comments
Thank you for the report. I confirmed it. |
mysticatea
added a commit
that referenced
this issue
Jun 7, 2017
Does acorn even support object spread out of the box? It's still an experimental feature. |
It seems like the issue is with object shorthand, not object spreading. |
mysticatea
added a commit
that referenced
this issue
Jun 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a reduced test case that generates the error:
Error message is: error Parsing error: Unexpected token ,
Eslint version is: v4.0.0-rc.0
espree: 3.4.3
Using ecmaversion 8.
Changing:
const foo = { async, bar };
toconst foo = { async: async, bar };
prevents the error.Relates to #295
The text was updated successfully, but these errors were encountered: