Read access to [[Class]]?

Herby Vojčík herby at mailbox.sk
Fri Jan 27 10:12:06 PST 2012


Rick Waldron wrote:
>
> On Fri, Jan 27, 2012 at 12:08 PM, Brendan Eich <brendan at mozilla.org
> <mailto:brendan at mozilla.org>> wrote:
>
>     [[Class]] begone in ES6.
>
>
> Assuming the public facing API has no intention of breaking back
> compatibility, what internal property will be read to determine the
> return value of Object.prototype.toString (15.2.4.2)?

[[NativeBrand]] if my memory does not fail me; but it only works for 
builtins, other will all return [[object object]].
Look at the newest proposal, allenwb has posted a link a week or two ago 
(I can't find it, I probably deleted the mail with it already).

Herby


More information about the es-discuss mailing list