Brandon Benvie (2013-10-01T02:56:09.000Z)
On 9/30/2013 7:34 PM, Matthew Robb wrote:
> var f = function(a=this){}
>
> would transpile to something like:
>
> var f = (function(){
>
> function __funcHead__(){
> a=this;
> }
> function __funcBody__(){
> // do stuff
> }
>
> var a;
>
> return function(a){__funcHead__.apply(this, arguments);return 
> __funcBody__.call(this)}
>
> }());
>
> If my interpretation is correct.
>

Not exactly. We're talking about lexical scopes, not function scopes. 
|this| applies at the function scope (aside from global and arrowfunc 
scope).
domenic at domenicdenicola.com (2013-10-13T02:51:17.484Z)
Not exactly. We're talking about lexical scopes, not function scopes. 
`this` applies at the function scope (aside from global and arrowfunc 
scope).