parserlib: fix endless loop on incomplete tokens

regressed in 048c2672
fixes #1381
This commit is contained in:
tophf 2022-01-11 21:18:37 +03:00
parent ca5402136d
commit d9a80623e1

View File

@ -4127,8 +4127,8 @@ self.parserlib = (() => {
this.fire(event, property);
if (consumeSemicolon) {
while (stream.match(TT.semiS)) {/*NOP*/}
}
this._ws();
}
return true;
}
@ -4392,7 +4392,7 @@ self.parserlib = (() => {
readMargins && this._margin() ||
(tt && stream.unget(), this._declaration(true, Props)) ||
(next = stream.LT(1)).value === ';' ||
this._ws(next, true)) {
this._ws(null, true)) {
continue;
}
break;