On Sep 10, 2013, at 3:55 AM, Till Schneidereit wrote:
>
> When implementing the [[Invoke]] trap in SpiderMonkey, I went with the
> assumption that it should apply to all calls of the forms `receiver.fun()`
> and `receiver["fun"]()`. Jason pointed out that `with (receiver) { fun() }`
> should be caught, too. Doing anything else would make for a surprising
> restriction of proxies' capabilities compared to manually overriding methods,
> IMO.
Yes, that's already covered in the spec. See
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.2.3 Step 1.b of
EvaluateCall
>
Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss