Erik Arvidsson erik.arvidsson at
Tue Aug 12 13:35:51 PDT 2014

Right now String(symbol) throws because it uses ToString which is spec'ed
to throw.

I'm suggesting that we special case String(value) to do a type check for
Symbol and return the same string as

The motivation for this is that String(value) is pretty explicit and was in
ES5 a safer way to stringify something than value.toString().

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

More information about the es-discuss mailing list