Function declarations with lexical `this`?

Axel Rauschmayer axel at rauschma.de
Tue Jun 25 14:49:11 PDT 2013


>> 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 

Perfect. That’s how I thought it would work.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

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


More information about the es-discuss mailing list