TypeScript/tests/baselines/reference/namedFunctionExpressionCall.js

25 lines
417 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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() {
// using the local name
2014-07-13 01:04:16 +02:00
foo();
// using the globally visible name
2014-07-13 01:04:16 +02:00
recurser();
};
(function bar() {
bar();
});