@@toStringTag spoofing for null and undefined

Gary Guo nbdd0121 at hotmail.com
Mon Feb 9 21:40:06 PST 2015


Sorry for not noticing the change. It seems the ES6 spec changes the behavior of *.prototype object. In ES5, *.prototype is itself a * object. However, because in ES5 Object.prototype.toString.call(String.prototype) will return [object String], my proposal does not break any legacy code, instead, if not implemented, legacy code could be broken.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150210/4ece4a58/attachment-0001.html>


More information about the es-discuss mailing list