arrow function syntax simplified

Brendan Eich brendan at mozilla.org
Thu Mar 29 12:35:03 PDT 2012


Herby Vojčík wrote:
>
> Isn't also answer to "5.":
>
>   Q: Will foo.call, foo.apply pass in the `this` ?
>   A: Yes, see above.
>
> changed? Or is lexical bound this working only for default this, but 
> not for call and apply? 

Yes, I addressed that in the update to

http://wiki.ecmascript.org/doku.php?id=strawman:arrow_function_syntax

Indeed lexical |this| means you can't pass a wrong-this even via .call 
or .apply. Thanks,

/be


More information about the es-discuss mailing list