[JS IR] Drop TemporaryAssignmentElimination optimization
Enable TemporaryAssignment tests
This commit is contained in:
committed by
Space Team
parent
a79282cec1
commit
25f7b81d51
+6
-4
@@ -3,17 +3,19 @@ function f(x) {
|
||||
}
|
||||
|
||||
function box() {
|
||||
var result1, result2;
|
||||
var result1, result2, $a, $b;
|
||||
|
||||
if (f(true)) {
|
||||
result1 = "1";
|
||||
$a = "1";
|
||||
}
|
||||
result1 = $a;
|
||||
if (result1 !== "1") return "fail1: " + result1;
|
||||
|
||||
if (f(false)) {
|
||||
result2 = "1";
|
||||
$b = "1";
|
||||
}
|
||||
result2 = $b;
|
||||
if (result2 !== void 0) return "fail2: " + result2;
|
||||
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user