Readdition of __proto__

Allen Wirfs-Brock allen at
Tue Oct 15 14:30:50 PDT 2013

On Oct 15, 2013, at 2:10 PM, 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?)
This case is exactly the same as O6.  Perhaps I should have written O6 as:

   o6[ ("__proto__") ] = p; //o6 inherits from p

to make that clearer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list