Files
kotlin-fork/js/js.translator/testData/js-optimizer/empty-statement-elimination/emptyIfConditionPreserved.original.js
T

23 lines
345 B
JavaScript
Vendored

var global = "";
function id(value) {
global += value + ";";
return value;
}
function test(x) {
$outer: {
if (id(x) + id(x + 1) > 0) {
break $outer;
}
else {
break $outer;
}
}
}
function box() {
test(23);
if (global != "23;24;") return "fail";
return "OK";
}