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
prefer-default-parameters
: Fix non-iterable visitorKeys
#1013
prefer-default-parameters
: Fix non-iterable visitorKeys
#1013
Conversation
It's babel ast , use babel parser to test it. |
|
Located problem |
Do you think we can fallback to |
@medusalix Can you also check this line,
|
@fisker That's great. I've added |
I changed to use But with |
There are unfortunately more cases that have to be considered: |
ESLint's
visitorKeys
apparently doesn't have an entry forExperimentalRestProperty
nodes, which leads to aTypeError
when iterating over the keys incontainsCallExpression
.I couldn't find a way to trigger this behavior in a test case.Fixes #966