Hi David, On Wed, Apr 27, 2011 at 1:17 PM, David Bruant <david.bru...@labri.fr> wrote: > The case when they are not the same is when the proxy is in the > prototype chain (regardless of what kind of object is "underneath"). > See the third example at: > https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Proxy#Common_mistakes_and_misunderstanding
I have seen this example. I was trying to indicate that it appears to exhibit incorrect behavior. The proxy's "get" trap should not be called, but rather its "getPropertyDescriptor" trap. And similarly when a proxy is encountered in a prototype chain, its "set" trap should not be called, but again its "getPropertyDescriptor" trap. Thanks, Sean Eagan _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss