Readdition of __proto__

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue Oct 15 16:14:03 PDT 2013


oh, that's cute :D

too bad I cannot shim/polyfill that in my `Object.mixin` module.

I would simply *red-flag* it and discourage the usage of `__proto__`
everywhere is possible (uhm wait ... I've already done that in the past,
never mind ... )

Happy `__dunder__` Everybody,
  Cheers




On Tue, Oct 15, 2013 at 4:03 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131015/a8ab9c6c/attachment.html>


More information about the es-discuss mailing list