Rewrite temporary variable elimination
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
function foo(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
function box() {
|
||||
var result = foo(2) + 1;
|
||||
if (result != 3) return "fail: " + result;
|
||||
|
||||
return "OK";
|
||||
}
|
||||
Reference in New Issue
Block a user