> Le 9 févr. 2015 à 16:15, Gary Guo <nbdd0...@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
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to