2015-02-23 02:59:24 +01:00
|
|
|
//// [functionWithDefaultParameterWithNoStatements3.ts]
|
|
|
|
function foo(a = "") { }
|
|
|
|
|
|
|
|
function bar(a = "") {
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements3.js]
|
2015-02-23 21:31:40 +01:00
|
|
|
function foo(a) {
|
|
|
|
if (a === void 0) { a = ""; }
|
|
|
|
}
|
2015-02-23 02:59:24 +01:00
|
|
|
function bar(a) {
|
2015-02-23 21:31:40 +01:00
|
|
|
if (a === void 0) { a = ""; }
|
2015-02-23 02:59:24 +01:00
|
|
|
}
|