mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +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
|
|
@ -128,7 +128,8 @@ class CPOWProxyHandler : public BaseProxyHandler
|
|||
virtual bool isArray(JSContext* cx, HandleObject obj,
|
||||
IsArrayAnswer* answer) const override;
|
||||
virtual const char* className(JSContext* cx, HandleObject proxy) const override;
|
||||
virtual bool regexp_toShared(JSContext* cx, HandleObject proxy, RegExpGuard* g) const override;
|
||||
virtual bool regexp_toShared(JSContext* cx, HandleObject proxy,
|
||||
MutableHandle<RegExpShared*> shared) const override;
|
||||
virtual void finalize(JSFreeOp* fop, JSObject* proxy) const override;
|
||||
virtual void objectMoved(JSObject* proxy, const JSObject* old) const override;
|
||||
virtual bool isCallable(JSObject* obj) const override;
|
||||
|
|
@ -854,13 +855,14 @@ WrapperOwner::getPrototypeIfOrdinary(JSContext* cx, HandleObject proxy, bool* is
|
|||
}
|
||||
|
||||
bool
|
||||
CPOWProxyHandler::regexp_toShared(JSContext* cx, HandleObject proxy, RegExpGuard* g) const
|
||||
CPOWProxyHandler::regexp_toShared(JSContext* cx, HandleObject proxy,
|
||||
MutableHandle<RegExpShared*> shared) const
|
||||
{
|
||||
FORWARD(regexp_toShared, (cx, proxy, g));
|
||||
FORWARD(regexp_toShared, (cx, proxy, shared));
|
||||
}
|
||||
|
||||
bool
|
||||
WrapperOwner::regexp_toShared(JSContext* cx, HandleObject proxy, RegExpGuard* g)
|
||||
WrapperOwner::regexp_toShared(JSContext* cx, HandleObject proxy, MutableHandle<RegExpShared*> shared)
|
||||
{
|
||||
ObjectId objId = idOf(proxy);
|
||||
|
||||
|
|
@ -880,7 +882,7 @@ WrapperOwner::regexp_toShared(JSContext* cx, HandleObject proxy, RegExpGuard* g)
|
|||
if (!regexp)
|
||||
return false;
|
||||
|
||||
return js::RegExpToSharedNonInline(cx, regexp, g);
|
||||
return js::RegExpToSharedNonInline(cx, regexp, shared);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue