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
restParams
This code succeeds:
require('espree').parse('(arg, ...args) => b', { ecmaFeatures: { restParams: false, arrowFunctions: true, destructuring: true, spread: true } })
It requires both destructuring and spread to be on. It seems to only happen for arrow functions with a parameter preceding the rest parameter.
destructuring
spread
The text was updated successfully, but these errors were encountered:
..
Ah yeah, that makes sense. The rest param is initially read as spread and then changes once the arrow is seen. I'll take a look.
Sorry, something went wrong.
Working on this.
491f879
Merge pull request #132 from eslint/issue130
a361108
Fix: Don't allow arrow function rest param (fixes #130)
No branches or pull requests
This code succeeds:
It requires both
destructuring
andspread
to be on.It seems to only happen for arrow functions with a parameter preceding the rest parameter.
The text was updated successfully, but these errors were encountered: