23 lines
345 B
JavaScript
Vendored
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";
|
|
} |