@@toStringTag spoofing for null and undefined

Brendan Eich brendan at mozilla.org
Tue Jan 20 15:13:37 PST 2015

Mark S. Miller wrote:
>     (2) can't be meta-programmed to spoof identity. But it doesn't
>     leave anything like nominal types as found in many languages lying
>     around as an attractive nuisance (and how, in Java!).
> What I think I remember hearing from Tom is that Dave's main point, 
> and the main argument with Tom, was precisely allowing proxies to 
> intercede on === checks, in which case you wouldn't even have that as 
> a reliable indicator.

Hmm, maybe -- but does Self have a reference-identity 
equivalence-relation operator that can't be spoofed? Might help to ask 
David, but to abstract from that particular SPLASH 2011 Q&A, obviously 
we won't be enabling such fakery in JS.


More information about the es-discuss mailing list