TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.js

14 lines
282 B
TypeScript

//// [functionWithDefaultParameterWithNoStatements4.ts]
function foo(a = ``) { }
function bar(a = ``) {
}
//// [functionWithDefaultParameterWithNoStatements4.js]
function foo(a) {
if (a === void 0) { a = ""; }
}
function bar(a) {
if (a === void 0) { a = ""; }
}