TypeScript/tests/baselines/reference/thisInModuleFunction1.js

18 lines
294 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [thisInModuleFunction1.ts]
module bar {
export function bar() {
return this;
}
}
var z = bar.bar();
//// [thisInModuleFunction1.js]
var bar;
(function (_bar) {
2014-07-13 01:04:16 +02:00
function bar() {
return this;
}
_bar.bar = bar;
2014-07-13 01:04:16 +02:00
})(bar || (bar = {}));
var z = bar.bar();