fix corner case in #2763 (#2766)

This commit is contained in:
Alex Lam S.L
2018-01-11 21:18:08 +08:00
committed by GitHub
parent f1e1bb419a
commit 23ec484806
2 changed files with 35 additions and 12 deletions

View File

@@ -1162,3 +1162,29 @@ join_object_assignments_2: {
}
expect_stdout: "1 4 6"
}
join_object_assignments_3: {
options = {
evaluate: true,
join_vars: true,
}
input: {
console.log(function() {
var o = {
a: "PASS",
}, a = o.a;
o.a = "FAIL";
return a;
}());
}
expect: {
console.log(function() {
var o = {
a: "PASS",
}, a = o.a;
o.a = "FAIL";
return a;
}());
}
expect_stdout: "PASS"
}