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