yeah, if you use an alias L the footgun image comes upside down too ``` L.__proto__ = null;
// later on, in ES6 L.__proto__ => () pew, pew; ``` On Tue, Oct 15, 2013 at 11:01 PM, Brendan Eich <[email protected]> wrote: > Allen Wirfs-Brock wrote: > >> On Oct 15, 2013, at 3:19 PM, Dean Landolt wrote: >> >>> > > So just to be clear, the only way to add a __proto__ property to >>> an existing object is with Object.defineProperty? >>> > >>> >> >> Object.mixin(obj, {["__proto__"]:42}); >> >> Allen >> > > Don't forget this chestnut: > > > js> var o = {} > js> o.__proto__ = null > null > js> o.__proto__ = 42 > 42 > js> o.toString > js> > > /be >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

