[JS] Disable special checks in labeled-block-to-do-while

This commit is contained in:
Zalim Bashorov
2020-06-03 03:45:46 +03:00
parent 7ca54ec405
commit e5c62c3838
2 changed files with 16 additions and 12 deletions
@@ -7,12 +7,14 @@ function box() {
var f = functions[i]; var f = functions[i];
var result = f(); var result = f();
if (f.toString().indexOf("label: do {") < 0) { // Disabled check to run js optimizer tests using V8.
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691 // Created the issue KT-39337 to address it separately.
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f; // if (f.toString().indexOf("label: do {") < 0) {
if (result !== void 0) return "Result of function changed: " + f; // // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
} // if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
else if (result !== "OK") { // if (result !== void 0) return "Result of function changed: " + f;
// }
if (result !== "OK") {
return "fail on " + f return "fail on " + f
} }
} }
@@ -7,12 +7,14 @@ function box() {
var f = functions[i]; var f = functions[i];
var result = f(); var result = f();
if (f.toString().indexOf("label: do {") < 0) { // Disabled check to run js optimizer tests using V8.
// See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691 // Created the issue KT-39337 to address it separately.
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f; // if (f.toString().indexOf("label: do {") < 0) {
if (result !== void 0) return "Result of function changed: " + f; // // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
} // if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
else if (result !== "OK") { // if (result !== void 0) return "Result of function changed: " + f;
// }
if (result !== "OK") {
return "fail on " + f return "fail on " + f
} }
} }