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