fix corner cases in join_vars (#3787)

fixes #3786
fixes #3788
This commit is contained in:
Alex Lam S.L
2020-04-17 14:19:18 +01:00
committed by GitHub
parent 9110fac9a2
commit 15a3ebd467
4 changed files with 667 additions and 601 deletions

View File

@@ -2444,21 +2444,3 @@ 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"
}