[JS IR] Drop TemporaryAssignmentElimination optimization
Enable TemporaryAssignment tests
This commit is contained in:
committed by
Space Team
parent
a79282cec1
commit
25f7b81d51
+10
-7
@@ -3,40 +3,43 @@ function f(x) {
|
||||
}
|
||||
|
||||
function testCatch1() {
|
||||
var $tmp;
|
||||
var result;
|
||||
try {
|
||||
result = f("testCatch1");
|
||||
$tmp = f("testCatch1");
|
||||
throw new Error();
|
||||
} catch (e) {
|
||||
result = $tmp;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function testCatch2() {
|
||||
var $tmp;
|
||||
var result;
|
||||
try {
|
||||
throw new Error();
|
||||
} catch (e) {
|
||||
result = $tmp;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function testFinally() {
|
||||
var result;
|
||||
try {
|
||||
result = f("testFinally");
|
||||
} finally {
|
||||
}
|
||||
result = f("testFinally");
|
||||
return result;
|
||||
}
|
||||
|
||||
function testOuter() {
|
||||
var $tmp;
|
||||
var result;
|
||||
try {
|
||||
result = f("testOuter");
|
||||
$tmp = f("testOuter");
|
||||
} finally {
|
||||
f("23")
|
||||
}
|
||||
result = $tmp;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -54,4 +57,4 @@ function box() {
|
||||
if (result !== "testOuter") return "testOuter: " + result;
|
||||
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user