Be able to find corresponding getter/setter given a symbol representing the other of the pair #10029
Labels
area-library
closed-not-planned
Closed as we don't intend to take action on the reported issue
library-core
library-mirrors
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Given a symbol for the name of a getter or setter, I would like to be able to find the name for the corresponding setter or getter. Or at least verify if a symbol instance that I have satisfies that property.
This is easily done by getting the name from the symbol and adding or removing =, then constructing a new symbol. However, this is quite space-expensive if the code has been minified. So I would like some mechanism that will work even if the names have been modified without requiring the original names.
It would also be useful to know if a symbol represented a private or public name.
The text was updated successfully, but these errors were encountered: