TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements9.js

14 lines
318 B
TypeScript
Raw Normal View History

//// [functionWithDefaultParameterWithNoStatements9.ts]
function foo(a = console.log) { }
function bar(a = console.log) {
}
//// [functionWithDefaultParameterWithNoStatements9.js]
2015-02-23 05:51:34 +01:00
function foo(a) {
if (a === void 0) { a = console.log; }
}
function bar(a) {
2015-02-23 05:51:34 +01:00
if (a === void 0) { a = console.log; }
}