[JS IR] Drop TemporaryAssignmentElimination optimization
Enable TemporaryAssignment tests
This commit is contained in:
committed by
Space Team
parent
a79282cec1
commit
25f7b81d51
Vendored
+5
-3
@@ -1,10 +1,12 @@
|
||||
function test(param) {
|
||||
var $a;
|
||||
var result;
|
||||
if (param > 0) {
|
||||
result = param;
|
||||
$a = param;
|
||||
} else {
|
||||
result = -param;
|
||||
$a = -param;
|
||||
}
|
||||
result = $a;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -16,4 +18,4 @@ function box() {
|
||||
if (result != 20) return "fail2: " + result;
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user