JS: improve temporary variable elimination in some cases. Apply redundant statement elimination when statement in not synthetic, but its expression is

This commit is contained in:
Alexey Andreev
2016-12-21 14:59:41 +03:00
parent 35ab41e900
commit 8ef284daf4
4 changed files with 38 additions and 20 deletions
@@ -1,8 +1,7 @@
var log = "";
function test(a) {
var $tmp1;
log += $tmp1 = 1;
log += 1;
return a;
}