mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Fix bug #122076. r=brendan. Stop [] parse loop from wandering off into the
weeds.
This commit is contained in:
parent
f9e9c8ab3d
commit
c6d91b4c6a
@ -915,7 +915,7 @@ ParseAtom(CompilerState *state)
|
||||
}
|
||||
if ((c = *cp++) == ']')
|
||||
break;
|
||||
if (c == '\\' && (cp+1 != state->cpend))
|
||||
if (c == '\\' && (cp != state->cpend))
|
||||
cp++;
|
||||
} while (JS_TRUE);
|
||||
ren->u.kid2 = (void *)(cp - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user