Same would be reassigning any prototype but it was just to make the
diabolic point... also yeah, sPO is powerful, that's why we love it!

( it's also way less diabolic than any "__proto__" string floating around
;) )

On Thu, Nov 13, 2014 at 11:44 AM, Andreas Rossberg <rossb...@google.com>
wrote:

> On 13 November 2014 12:25, Andrea Giammarchi
> <andrea.giammar...@gmail.com> wrote:
> > well, Proxy can be a diabolic beast
> >
> > ```js
> > Object.setPrototypeOf(
> >   Object.prototype,
> >   new Proxy(Object.prototype, evilPlan)
> > )
> > ```
> >
> > having no way to understand if an object is a Proxy looks like a footgun
> to
> > me in the long term, for libraries, and "code alchemists"
>
> Well, the actual diabolic beast and universal foot gun in this example
> is setPrototypeOf. ;)
>
> /Andreas
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to