Readdition of __proto__

Allen Wirfs-Brock allen at wirfs-brock.com
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.

Allen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131015/8c4906cf/attachment.html>


More information about the es-discuss mailing list