Re: Array.isArray(new Proxy([], {})) should be false (Bug 1096753)

2014-11-15 Thread David Bruant
Le 13/11/2014 17:29, Boris Zbarsky a écrit : On 11/13/14, 6:44 AM, Andreas Rossberg wrote: Well, the actual diabolic beast and universal foot gun in this example is setPrototypeOf. ;) Note that there is at least some discussion within Mozilla about trying to make the prototype of

Re: Array.isArray(new Proxy([], {})) should be false (Bug 1096753)

2014-11-15 Thread Allen Wirfs-Brock
On Nov 15, 2014, at 1:24 AM, David Bruant wrote: Le 13/11/2014 17:29, Boris Zbarsky a écrit : On 11/13/14, 6:44 AM, Andreas Rossberg wrote: Well, the actual diabolic beast and universal foot gun in this example is setPrototypeOf. ;) Note that there is at least some discussion within

Re: Array.isArray(new Proxy([], {})) should be false (Bug 1096753)

2014-11-15 Thread Boris Zbarsky
On 11/15/14, 11:47 AM, Allen Wirfs-Brock wrote: Actually the ES6 semantics does allow for this. The global object would have t be implemented as a new kind of implementation specific exotic object whose [[SetPrototypeOf]] internal method always returns false. That works for the global

Re: Array.isArray(new Proxy([], {})) should be false (Bug 1096753)

2014-11-15 Thread Brendan Eich
Boris Zbarsky wrote: On 11/15/14, 11:47 AM, Allen Wirfs-Brock wrote: - hide quoted text -- show quoted text - Actually the ES6 semantics does allow for this. The global object would have t be implemented as a new kind of implementation specific exotic object whose [[SetPrototypeOf]] internal