Default @@toStringTag for user classes

Claude Pache claude.pache at gmail.com
Tue Dec 2 04:03:10 PST 2014


> Le 2 déc. 2014 à 09:04, Michał Wadas <michalwadas at gmail.com> a écrit :
> 
> It probably would be backward incompatible change. Too much code depends on [Object Object].
> 
I'm curious to know what sort of code would be broken by `O.p.toString.call(x) === "[object Point]"` for instances `x` of some user-defined class? and whether it is not already broken by, say, `O.p.toString.call(new Set) === "[object Set]"`?

—Claude

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141202/32a71b63/attachment.html>


More information about the es-discuss mailing list