Array.isArray(new Proxy([], {})) should be false (Bug 1096753)
Andreas Rossberg
rossberg at google.com
Thu Nov 13 03:44:49 PST 2014
On 13 November 2014 12:25, Andrea Giammarchi
<andrea.giammarchi at 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
More information about the es-discuss
mailing list