mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
Issue #2083 - Part 2: Remove use of RegExpGuard.
Based on Mozilla bug 1345177. There were more uses of RegExpGuard in js/src/builtin/RegExp.cpp not found in the original bug's patch.
This commit is contained in:
parent
3796c7c1e1
commit
d163d08cb2
21 changed files with 92 additions and 73 deletions
|
|
@ -6141,7 +6141,7 @@ JS_GetRegExpFlags(JSContext* cx, HandleObject obj)
|
|||
AssertHeapIsIdle(cx);
|
||||
CHECK_REQUEST(cx);
|
||||
|
||||
RegExpGuard shared(cx);
|
||||
RootedRegExpShared shared(cx);
|
||||
if (!RegExpToShared(cx, obj, &shared))
|
||||
return false;
|
||||
return shared->getFlags();
|
||||
|
|
@ -6153,7 +6153,7 @@ JS_GetRegExpSource(JSContext* cx, HandleObject obj)
|
|||
AssertHeapIsIdle(cx);
|
||||
CHECK_REQUEST(cx);
|
||||
|
||||
RegExpGuard shared(cx);
|
||||
RootedRegExpShared shared(cx);
|
||||
if (!RegExpToShared(cx, obj, &shared))
|
||||
return nullptr;
|
||||
return shared->getSource();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue