9 lines
187 B
JavaScript
9 lines
187 B
JavaScript
//// [topLevelLambda2.ts]
|
|
function foo(x:any) {}
|
|
|
|
foo(()=>this.window);
|
|
|
|
//// [topLevelLambda2.js]
|
|
var _this = this;
|
|
function foo(x) { }
|
|
foo(function () { return _this.window; });
|