[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 result = f();
if (f.toString().indexOf("label: do {") < 0) {
// http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
if (result !== void 0) return "Result of function changed: " + f;
}
else if (result !== "OK") {
// Disabled check to run js optimizer tests using V8.
// Created the issue KT-39337 to address it separately.
// if (f.toString().indexOf("label: do {") < 0) {
// // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
// if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
// if (result !== void 0) return "Result of function changed: " + f;
// }
if (result !== "OK") {
return "fail on " + f
}
}
@@ -7,12 +7,14 @@ function box() {
var f = functions[i];
var result = f();
if (f.toString().indexOf("label: do {") < 0) {
// See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
if (result !== void 0) return "Result of function changed: " + f;
}
else if (result !== "OK") {
// Disabled check to run js optimizer tests using V8.
// Created the issue KT-39337 to address it separately.
// if (f.toString().indexOf("label: do {") < 0) {
// // See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8177691
// if (result === "OK") return "Looks like JDK-8177691 fixed for " + f;
// if (result !== void 0) return "Result of function changed: " + f;
// }
if (result !== "OK") {
return "fail on " + f
}
}