apply collapse_vars to loop conditions (#2712)

This commit is contained in:
Alex Lam S.L
2018-01-04 03:18:28 +08:00
committed by GitHub
parent cfe3a98ce5
commit c598a12af9
2 changed files with 6 additions and 1 deletions

View File

@@ -1416,7 +1416,7 @@ issue_2630_5: {
!function() {
do {
c *= 10;
} while (c += 3, (c = 2 + c) < 100);
} while ((c = 2 + (c += 3)) < 100);
}();
console.log(c);
}