-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently getPropertyName
always return string
(bigint is also possible when it's Literal
), but property can be a symbol
bar[Symbol.iterator]()
This can be calculated by getStaticValue
.
BTW: Similar bug in ESLint core, this will cause foo["Symbol()"]
foo[Symbol()]
considered as same reference.
I think it should return string | symbol
or just return the value as it is, let user convert to string
.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request