WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: super, methods, constructors & Co.

RE: super, methods, constructors & Co.

by Domenic Denicola-2 :: Rate this Message:

| View in Thread

> -----Original Message-----
> From: es-discuss-bounces@... [mailto:es-discuss-
> bounces@...] 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.
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss

 « Return to Thread: super, methods, constructors & Co.