restructure test directory
This commit is contained in:
7
test/fixtures/syntax/default-parameters/multiple/actual.js
vendored
Normal file
7
test/fixtures/syntax/default-parameters/multiple/actual.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var t = function (t = "foo", f = 5) {
|
||||
return t + " bar " + f;
|
||||
};
|
||||
|
||||
var a = function (t, f = 5) {
|
||||
return t + " bar " + f;
|
||||
};
|
||||
12
test/fixtures/syntax/default-parameters/multiple/expected.js
vendored
Normal file
12
test/fixtures/syntax/default-parameters/multiple/expected.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
var t = function (t, f) {
|
||||
if (f === undefined)
|
||||
f = 5;
|
||||
if (t === undefined)
|
||||
t = "foo";
|
||||
return t + " bar " + f;
|
||||
};
|
||||
var a = function (t, f) {
|
||||
if (f === undefined)
|
||||
f = 5;
|
||||
return t + " bar " + f;
|
||||
};
|
||||
Reference in New Issue
Block a user