Rewrite temporary variable elimination

This commit is contained in:
Alexey Andreev
2016-03-23 11:54:58 +03:00
parent 8709289b0a
commit cfdce8eaca
11 changed files with 642 additions and 144 deletions
@@ -0,0 +1,10 @@
function foo(x) {
return x;
}
function box() {
var result = foo(2) + 1;
if (result != 3) return "fail: " + result;
return "OK";
}