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:
Vendored
+1
-2
@@ -1,8 +1,7 @@
|
||||
var log = "";
|
||||
|
||||
function test(a) {
|
||||
var $tmp1;
|
||||
log += $tmp1 = 1;
|
||||
log += 1;
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user