Claude Pache (2015-02-09T15:43:23.000Z)
> Le 9 févr. 2015 à 16:15, Gary Guo <nbdd0121 at hotmail.com> a écrit :
> 
> I propose addition of String.prototype[@@toStringTag] as well as abridgement of Object.prototype.toString.

The issue with that approach, is that `O.p.toString.call(String.prototype)` will return "[object String]", but, for ES6, `String.prototype` is not a String object, leading to a false positive that could break legacy code. (Don't know whether it is a problem in practice.)

—Claude
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150209/c9cf79e9/attachment.html>
d at domenic.me (2015-02-17T19:13:09.364Z)
> Le 9 févr. 2015 à 16:15, Gary Guo <nbdd0121 at hotmail.com> a écrit :
> 
> I propose addition of String.prototype[@@toStringTag] as well as abridgement of Object.prototype.toString.

The issue with that approach, is that `O.p.toString.call(String.prototype)` will return "[object String]", but, for ES6, `String.prototype` is not a String object, leading to a false positive that could break legacy code. (Don't know whether it is a problem in practice.)