[[Invoke]] and implicit method calls

André Bargull andre.bargull at udo.edu
Thu Sep 19 06:40:23 PDT 2013


Back to option 2: Redesign [[Invoke]] from 
https://mail.mozilla.org/pipermail/es-discuss/2013-August/032718.html ?

- André

> What if we made invoke take either an identifier to call, or a got 
> function to call? Then get+invoke would pass the "got" function.
>
> /be
> Allen Wirfs-Brock <mailto:allen at wirfs-brock.com>
> September 19, 2013 1:39 PM
>
> Seems very unlikely. The @@hasInstance access is new so it isn't a 
> backwards compat issue. BTW, these are static counts. For example, a 
> typical call to ToPrimitive will only make a single such conditional 
> invoke.
>
> Arguably allowing a String or Number wrapper to be transparently 
> proxied and hence work like a unproxied wrapper WRT ToPrimitive is one 
> the reasons we need to do this.
>
> Allen
>
> [...]



More information about the es-discuss mailing list