TypeScript/tests/baselines/reference/thisInModuleFunction1.js
2014-07-21 11:17:44 -07:00

18 lines
294 B
JavaScript

//// [thisInModuleFunction1.ts]
module bar {
export function bar() {
return this;
}
}
var z = bar.bar();
//// [thisInModuleFunction1.js]
var bar;
(function (_bar) {
function bar() {
return this;
}
_bar.bar = bar;
})(bar || (bar = {}));
var z = bar.bar();