enhance side_effects & strings (#5704)

This commit is contained in:
Alex Lam S.L
2022-10-10 01:01:40 +01:00
committed by GitHub
parent a391897388
commit ed7051b9bb
2 changed files with 35 additions and 18 deletions

View File

@@ -273,6 +273,23 @@ concat_9: {
expect_stdout: true
}
concat_sequence: {
options = {
collapse_vars: true,
strings: true,
toplevel: true,
unused: true,
}
input: {
var a;
console.log(12 + (a = null, "34" + a));
}
expect: {
console.log(12 + "34" + null);
}
expect_stdout: "1234null"
}
issue_3689: {
options = {
strings: true,