Restore old labeled break semantics
This commit is contained in:
parent
197038ddb6
commit
b1a2614ed0
1 changed files with 6 additions and 3 deletions
|
|
@ -1925,16 +1925,19 @@ klass:
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
minus = false;
|
minus = false;
|
||||||
|
var breakOuterLoop = false;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (t.type === "special" && t.value === "*/") {
|
if (t.type === "special" && t.value === "*/") {
|
||||||
minus = false;
|
breakOuterLoop = true;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
if (t.id !== "(endline)" && t.id !== ",") {
|
if (t.id !== "(endline)" && t.id !== ",") {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
t = lex.token();
|
t = lex.token();
|
||||||
}
|
}
|
||||||
|
if (breakOuterLoop)
|
||||||
|
break;
|
||||||
|
|
||||||
if (o === "/*global" && t.value === "-") {
|
if (o === "/*global" && t.value === "-") {
|
||||||
minus = true;
|
minus = true;
|
||||||
|
|
@ -4835,4 +4838,4 @@ if (typeof exports === "object" && exports) {
|
||||||
exports.JSHINT = JSHINT;
|
exports.JSHINT = JSHINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue