TypeScript/tests/baselines/reference/namedFunctionExpressionCall.js
2014-07-12 17:30:19 -07:00

23 lines
348 B
JavaScript

//// [namedFunctionExpressionCall.ts]
var recurser = function foo() {
// using the local name
foo();
// using the globally visible name
recurser();
};
(function bar() {
bar();
});
//// [namedFunctionExpressionCall.js]
var recurser = function foo() {
foo();
recurser();
};
(function bar() {
bar();
});