Skip to content

Commit e5c62c3

Browse files
committed
[JS] Disable special checks in labeled-block-to-do-while
1 parent 7ca54ec commit e5c62c3

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

js/js.translator/testData/js-optimizer/labeled-block-to-do-while/simple.optimized.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ function box() {
77
var f = functions[i];
88
var result = f();
99

10-
if (f.toString().indexOf("label: do {") < 0) {
11-
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
12-
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
13-
if (result !== void 0) return "Result of function changed: " + f;
14-
}
15-
else if (result !== "OK") {
10+
// Disabled check to run js optimizer tests using V8.
11+
// Created the issue KT-39337 to address it separately.
12+
// if (f.toString().indexOf("label: do {") < 0) {
13+
// // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
14+
// if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
15+
// if (result !== void 0) return "Result of function changed: " + f;
16+
// }
17+
if (result !== "OK") {
1618
return "fail on " + f
1719
}
1820
}

js/js.translator/testData/js-optimizer/labeled-block-to-do-while/simple.original.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ function box() {
77
var f = functions[i];
88
var result = f();
99

10-
if (f.toString().indexOf("label: do {") < 0) {
11-
// See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
12-
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
13-
if (result !== void 0) return "Result of function changed: " + f;
14-
}
15-
else if (result !== "OK") {
10+
// Disabled check to run js optimizer tests using V8.
11+
// Created the issue KT-39337 to address it separately.
12+
// if (f.toString().indexOf("label: do {") < 0) {
13+
// // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
14+
// if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
15+
// if (result !== void 0) return "Result of function changed: " + f;
16+
// }
17+
if (result !== "OK") {
1618
return "fail on " + f
1719
}
1820
}

0 commit comments

Comments
 (0)