W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 16450] Class String

From: <bugzilla@jessica.w3.org>
Date: Wed, 21 Mar 2012 22:51:03 +0000
To: public-script-coord@w3.org
Message-Id: <E1SAUMx-0007Qw-WC@jessica.w3.org>

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2012-03-21 22:51:03 UTC ---
Internal properties are really just conceptual definitions anyway, they're not
expected to exist on the property internally necessarily.

I don't believe there is a way to expose arbitrary internal properties from ES5

I define the class string solely to avoid redefining [[Class]], to make it
possible for pure JS implementations to have Object.prototype.toString behave
appropriately.  I think at some point ECMAScript is going to gain an internal
property like this, but I don't think they have done so yet.  When they do, we
can rewrite Web IDL to use that rather having the "class string" definition.

I don't think it makes sense to have all platform objects return "[object

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 21 March 2012 22:51:06 UTC

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