[[Invoke]] and implicit method calls

Brendan Eich brendan at mozilla.com
Wed Sep 11 17:13:38 PDT 2013


> Jason Orendorff <mailto:jason.orendorff at gmail.com>
> September 11, 2013 3:38 PM
>
> But as Allen said, [[Invoke]] is not a performance hack. It's a
> correctness hack.
>
> It permits proxies to customize their behavior around `this`, and even
> naive .invoke trap users would definitely want those customizations to
> apply for implicit .toString() and .then().

Sorry, how can this be correctness when ECMA-262 and implementations 
have used [[Get]] + [[Call]] (after some IsCallable conditioning) forever?

/be


More information about the es-discuss mailing list