enhance collapse_vars (#3621)

This commit is contained in:
Alex Lam S.L
2019-12-02 15:25:38 +08:00
committed by GitHub
parent bef856addb
commit 500e31e03b
2 changed files with 93 additions and 27 deletions

View File

@@ -2578,6 +2578,23 @@ chained_3: {
expect_stdout: "2"
}
chained_4: {
options = {
collapse_vars: true,
}
input: {
var a = "foo", b = 42;
var b = void (b = a);
console.log(a, b);
}
expect: {
var a = "foo", b = 42;
var b = void (b = a);
console.log(a, b);
}
expect_stdout: "foo undefined"
}
boolean_binary_1: {
options = {
collapse_vars: true,