W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2013

Interface prototype objects and ES6 @@toStringTag

From: Erik Arvidsson <erik.arvidsson@gmail.com>
Date: Mon, 13 May 2013 16:50:01 -0400
Message-ID: <CAJ8+Goh1n4GO357F+tWY1g_W9f5ouJJ5Rj=Yq2WgaD-HsN8paQ@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
The way that WebIDL require Object.prototype.toString to return "[object
TypePrototype]" for the interface prototype object and "[object Type]" for
the instances seems to imply that every instance needs to have an own


If an instance does not have its own @@toStringTag,
Object.prototype.toString will read through to the [[Prototype]] which
would return the wrong string.

Received on Monday, 13 May 2013 20:50:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:13 UTC