Claude Pache claude.pache at
Thu Sep 11 16:24:15 PDT 2014

Le 26 août 2014 à 17:39, Jeff Walden <jwalden+es at MIT.EDU> a écrit :

> On 08/12/2014 11:07 PM, Allen Wirfs-Brock wrote:
>> sounds good to me, I'll update the spec. accordingly
>> On Aug 12, 2014, at 7:39 PM, Erik Arvidsson wrote:
>>> I was suggesting that String(symbol) should not throw.
>>> This can be spec'ed as String( value ) checking the Type of the value and special case it in case of the value being a symbol.
> With this change, as far as I can tell there's no concise operation directly corresponding to the ToString abstract operation.  The best that seems possible is some horribly indirect operation like (v) =>{ name: v, message: "" }).  That seems undesirable to me.  I'm not convinced that having String deviate from ToString is a good thing.
> Jeff

What about String.prototype.concat?

const ToString = ''.concat.bind('')


More information about the es-discuss mailing list