Function declarations with lexical `this`?

Axel Rauschmayer axel at
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 

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

Dr. Axel Rauschmayer
axel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list