improve inline efficiency (#2188)

... by teaching `collapse_vars` some new tricks.

fixes #2187
This commit is contained in:
Alex Lam S.L
2017-07-02 01:05:14 +08:00
committed by GitHub
parent 7659ea1d2e
commit d40950b741
6 changed files with 119 additions and 69 deletions

View File

@@ -468,11 +468,9 @@ issue_2114_1: {
}
expect: {
var c = 0;
!function() {
0;
}((c += 1, c = 1 + c, function() {
c = 1 + (c += 1), function() {
var b = void (b && (b.b += (c += 1, 0)));
}()));
}();
console.log(c);
}
expect_stdout: "2"