Merge pull request #1263 from ajaxorg/fix-100pct-cpu

Restore old labeled break semantics
This commit is contained in:
Mostafa Eweda 2013-02-20 09:48:04 -08:00
commit 2c2156cc10

View file

@ -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;