Default @@toStringTag for user classes

Domenic Denicola d at domenic.me
Tue Dec 2 10:11:23 PST 2014


From: es-discuss [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Andrea Giammarchi

> I think by `@@toStringTag` he meant the ability to define a `[[Class]]` name so that `{}.toString.call(generic)` would return such name instead of `Object` but I'm sure Dmitry will come back explaining and/or asking more.

[[Class]] does not appear in the spec, and @@toStringTag does.


More information about the es-discuss mailing list