Default @@toStringTag for user classes

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

> Le 2 déc. 2014 à 09:04, Michał Wadas <michalwadas at> 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 ` === "[object Point]"` for instances `x` of some user-defined class? and whether it is not already broken by, say, ` Set) === "[object Set]"`?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list