enhance join_vars (#3783)

This commit is contained in:
Alex Lam S.L
2020-04-16 22:31:33 +01:00
committed by GitHub
parent 46d142cbf6
commit 0ce71bbec0
5 changed files with 65 additions and 21 deletions

View File

@@ -2444,3 +2444,21 @@ issue_3746: {
}
expect_stdout: "PASS"
}
join_vars_assign: {
options = {
join_vars: true,
unused: true,
}
input: {
var y, x;
x = Object("PAS");
y = Object("S");
console.log(x + y);
}
expect: {
var x = Object("PAS"), y = Object("S");
console.log(x + y);
}
expect_stdout: "PASS"
}