[Bug 16450] Class String

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16450

--- 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
objects.

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
Platform]".

-- 
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