Proxies and proto; cyclic now possible

Boris Zbarsky bzbarsky at mit.edu
Mon Dec 8 14:22:15 PST 2014


On 12/8/14, 4:24 PM, François REMY wrote:
>     var o = {};
> var p = new Proxy(o, { get: function(o, p) { return o[p]; } });
>     o.__proto__ = p;

This does nothing on its own in Firefox, afaict.

If I then do "o.foo" I get a "too much recursion" exception, as expected.

What is the problem, exactly?

-Boris



More information about the es-discuss mailing list