Skip to content

Commit

Permalink
[JS] Disable special checks in labeled-block-to-do-while
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor committed Dec 7, 2020
1 parent 7ca54ec commit e5c62c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Expand Up @@ -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
}
}
Expand Down
Expand Up @@ -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
}
}
Expand Down

0 comments on commit e5c62c3

Please sign in to comment.