-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Fix: Handle empty string property names in getFunctionNameWithKind #12104
Fix: Handle empty string property names in getFunctionNameWithKind #12104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far, thanks for contributing!
Just out of curiosity, what happens with 0
or '0'
? Is that affected by your change?
It shouldn't be affected because But to be sure that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for contributing!
What is the purpose of this pull request? (put an "X" next to item)
[X] Bug fix
Minor fix in
astUtils.getFunctionNameWithKind()
for empty string property names, to show''
instead of nothing in warning messages.Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue.
An example:
What did you expect to happen?
What actually happened? Please include the actual, raw output from ESLint.
What changes did you make? (Give an overview)
Explicitly check for
null
.Is there anything you'd like reviewers to focus on?