@@toStringTag sounds like a function

Brendan Eich brendan at mozilla.com
Sat Oct 19 12:10:16 PDT 2013


@@tagForToString? Er, no.

It's actually not the whole return value of any toString call, of 
course. It is the %s in "[object %s]" returned by 
Object.prototype.toString.call(x) for an object x. This suggests

@@objectToStringTag

or something along those lines. Does that help?

/be

> Nathan Wall <mailto:nathan.wall at live.com>
> October 19, 2013 12:05 PM
>
> Ah, you know, I hadn't made that connection.  That's interesting.
>
> I still think I would prefer something else... maybe even just 
> `@@tag`.  But that certainly makes more sense out of the naming.
>
> Thanks!
>
> Nathan
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the es-discuss mailing list