super, methods, constructors & Co.

Domenic Denicola domenic at domenicdenicola.com
Fri Jun 1 08:30:44 PDT 2012


> -----Original Message-----
> From: es-discuss-bounces at mozilla.org [mailto:es-discuss-
> bounces at mozilla.org] On Behalf Of Allen Wirfs-Brock
> Sent: Friday, June 01, 2012 04:05


> We haven't eliminated the ability to define object literals that inherit
> from objects other than Object.prototype.  We have just changed the
> syntax for specifying them from:
>    proto <| {}
> to
>    {__proto__: proto}

For anyone who (like me) was confused by this in light of all the talk that colons in object literals always do a [[DefineOwnProperty]], there is an exemption made for __proto__ in section B.3.1.3 of the latest spec.


More information about the es-discuss mailing list