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