Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-08 Thread David Bruant
Le 07/04/2011 20:39, Brendan Eich a écrit : On Apr 7, 2011, at 7:49 AM, Tom Van Cutsem wrote: But again, I would hope that an implementation that supports both Object.freeze + proxies just supports freezing proxies via the fix() trap as per the draft spec. I don't see the need for such an

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-07 Thread Tom Van Cutsem
2011/4/5 David Bruant david.bru...@labri.fr Le 05/04/2011 10:22, Tom Van Cutsem a écrit : (...) If a browser does not support Object.freeze, seal or preventExtensions, it likely does not support fixing proxies either. Calling the fix() trap explicitly via Proxy.trap would still not

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-07 Thread Brendan Eich
On Apr 7, 2011, at 7:49 AM, Tom Van Cutsem wrote: But again, I would hope that an implementation that supports both Object.freeze + proxies just supports freezing proxies via the fix() trap as per the draft spec. I don't see the need for such an implementation to additionally provide an

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-05 Thread Tom Van Cutsem
Hi, I'd like to remind that if Object.getPropertyDescriptor isn't a native function with a native underlying internal method, but a monkey patch, it will not call a proxy trap (maybe this should be addressed?). There's a Harmony proposal that proposes adding Object.getPropertyDescriptor

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-05 Thread David Bruant
Le 05/04/2011 10:22, Tom Van Cutsem a écrit : Hi, I'd like to remind that if Object.getPropertyDescriptorisn't a native function with a native underlying internal method, but a monkey patch, it will not call a proxy trap (maybe this should be addressed?).

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-05 Thread David Bruant
Le 05/04/2011 10:22, Tom Van Cutsem a écrit : (...) If a browser does not support Object.freeze, seal or preventExtensions, it likely does not support fixing proxies either. Calling the fix() trap explicitly via Proxy.trap would still not lead to the expected behavior. Thinking about fix and

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-04 Thread Tom Van Cutsem
Hi, 2011/3/31 David Bruant david.bru...@labri.fr Hi, First, I'd like to say that I'm glad proxy-related issues have been discussed during the last TC-39 meeting and that all have found an agreement. Then I have a something to say on

Re: [Harmony proxies] add receiver as a first argument to all prototype-climbing traps

2011-04-04 Thread David Bruant
Le 04/04/2011 17:08, Tom Van Cutsem a écrit : Hi, 2011/3/31 David Bruant david.bru...@labri.fr mailto:david.bru...@labri.fr Hi, First, I'd like to say that I'm glad proxy-related issues have been discussed during the last TC-39 meeting and that all have found an