Standardizing __proto__

John-David Dalton john.david.dalton at gmail.com
Fri Mar 18 13:08:10 PDT 2011


> You are missing shaver's point that initiializing is not the same as reassigning later on a created and reachable object.

No, I got it. I can dig something like Object.subclass() or the other
alternatives proposed that handle setting the [[Prototype]] one time
at creation.

> Proxies may help some use-cases. They are not a solution if you want a one-off delegation chain from a non-proxy to another object.

Ya proxies are a miss for this. It's been stated that proxies will not
persist the [[Class]] so they aren't an ideal replacement for
__proto__.


More information about the es-discuss mailing list