JS/Inlining: fix broken evaluation order after applying temporary variable elimination

This commit is contained in:
Alexey Andreev
2016-05-05 17:22:38 +03:00
parent ee6483b7ec
commit 96532f1fc2
2 changed files with 6 additions and 6 deletions
@@ -20,9 +20,8 @@ function test2() {
init();
var $tmp2 = foo(2);
var $tmp1 = foo(1);
return foo($tmp1 + $tmp2);
return foo(foo(1) + $tmp2);
}
function test3() {