Function declarations with lexical `this`?

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Jun 25 10:41:45 PDT 2013


On Jun 24, 2013, at 11:37 PM, Axel Rauschmayer wrote:
> 
> Given that generators use the `this` that the function would have (at least that’s how I read the spec – `this` is the global object for a non-strict generator function, `undefined` for a strict generator function, the receiver of the method invocation for a generator method), a generator arrow function would even be useful: a generator with lexical `this`.

see https://bugs.ecmascript.org/show_bug.cgi?id=1489 












-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130625/f8a4f398/attachment.html>


More information about the es-discuss mailing list