fix corner case in merge_vars (#5609)

This commit is contained in:
Alex Lam S.L
2022-08-09 03:18:11 +01:00
committed by GitHub
parent 2c3c4ec323
commit c32fe26b8d
3 changed files with 37 additions and 13 deletions

View File

@@ -1902,8 +1902,8 @@ issue_4288: {
console.log(typeof b);
}()]: a,
}) {
var b = a;
b++;
var a = a;
a++;
}
f(0);
}
@@ -2076,17 +2076,16 @@ issue_4312: {
console.log(a);
}
expect: {
var a;
b = "PASS",
c = "FAIL",
[
{
[a = b]: d,
[c = b]: d,
},
] = [ c && c ],
void 0;
var b, c, d;
console.log(a);
console.log(c);
}
expect_stdout: "PASS"
node_version: ">=6"