Readdition of __proto__

Brendan Eich brendan at mozilla.com
Tue Oct 15 14:50:39 PDT 2013


Benjamin (Inglor) Gruenbaum wrote:
> Not resolving this like o3 (or o6 really) sounds very strange. I think:
>
> let attr = "__proto__";
> let o7 = new Object;
> o7[attr] = p; // o7 inherits from p
>
> Is the correct behavior here (why would it not invoke the setter?)

Allen confirmed, but just to be clear, any world where o["foo"] and do { 
let key = "foo"; o[key]; } (do-expression syntax from harmony-era 
strawman) differ is crazytown, and we do not go there.

/be


More information about the es-discuss mailing list