Restore old labeled break semantics

This commit is contained in:
Lennart Kats 2013-02-20 18:31:21 +01:00
commit b815db63cd

View file

@ -1925,16 +1925,19 @@ klass:
for (;;) { for (;;) {
minus = false; minus = false;
var breakOuterLoop;
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;