We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In version 5.0.0 it is not possible to use the spread operator. When you try to use the following code:
{ "parserOptions": { "ecmaVersion": 2018, // or 6 "ecmaFeatures": { "jsx": true, "experimentalObjectRestSpread": true, "SpreadElement": true } }, ...
I got this error: 31:18 error Parsing error: Unexpected token .. on code:
31:18 error Parsing error: Unexpected token ..
let {x, y, ...z} = {x: 1, y: 2, a: 3, b: 4}; console.log(x); // 1 console.log(y); // 2 console.log(z); // { a: 3, b: 4 }
The text was updated successfully, but these errors were encountered:
I just ran it through myself and it seems to be fine
Sorry, something went wrong.
I also encountered this problem, still 6.0.0 version
Have you found a solution?
No branches or pull requests
In version 5.0.0 it is not possible to use the spread operator.
When you try to use the following code:
I got this error:
31:18 error Parsing error: Unexpected token ..
on code:The text was updated successfully, but these errors were encountered: