[JS IR] Drop TemporaryAssignmentElimination optimization

Enable TemporaryAssignment tests
This commit is contained in:
Alexander Korepanov
2023-07-05 15:30:00 +02:00
committed by Space Team
parent a79282cec1
commit 25f7b81d51
10 changed files with 47 additions and 330 deletions
@@ -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";
}
}