Le 18/10/2011 17:28, Andreas Rossberg a écrit : > On 18 October 2011 13:45, David Bruant <[email protected]> wrote: >> Another alternative would be to do natively what we've been doing in code >> which is that when a call is trapped, instead of using the handler, an new >> object is created. This object inherits from the handler and has at the own >> layer the 3 properties. If another trap is traversed, another object is >> created, etc. (this is of course in theory. Engines are free to optimize). > Unfortunately, they aren't, because the difference is observable, due > to unpleasant features like object identity. True. The idea of a |this| being a forwarding proxy with the handler as its target can still hold since it would just be one additional identity and some magic for the particular property names "proxy", "target" and "receiver".
David _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

