That's the approach I'm going for now, but it would have been nice if Function.prototype.caller still existed, because then I could just make a getter function for each key, and call it a day.
Sadly, symbols can still be exposed, unless you want to work with Proxys.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Not possible but you can use symbols to store private data and expose those symbols to friend functions.
A sadly irritating workaround :/
I know. - Also dangerous because it's not completely private.
That's the approach I'm going for now, but it would have been nice if
Function.prototype.caller
still existed, because then I could just make a getter function for each key, and call it a day.Sadly, symbols can still be exposed, unless you want to work with
Proxy
s.