mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 909785 - Add SkipRoot for inline chars used by regexp r=terrence
This commit is contained in:
parent
806a5de827
commit
4668939844
@ -527,6 +527,9 @@ RegExpRunStatus
|
||||
RegExpShared::execute(JSContext *cx, const jschar *chars, size_t length,
|
||||
size_t *lastIndex, MatchPairs &matches)
|
||||
{
|
||||
/* Protect inlined chars from root analysis poisoning. */
|
||||
SkipRoot skip(cx, &chars);
|
||||
|
||||
/* Compile the code at point-of-use. */
|
||||
if (!compileIfNecessary(cx))
|
||||
return RegExpRunStatus_Error;
|
||||
|
Loading…
Reference in New Issue
Block a user