mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 03:27:31 +09:00
1320408 - Part 4: Change JSObject::getGroup to static method.
This commit is contained in:
parent
ed78b21cf0
commit
87bfc02f09
14 changed files with 56 additions and 45 deletions
|
|
@ -1489,9 +1489,9 @@ JSObject::swap(JSContext* cx, HandleObject a, HandleObject b)
|
|||
|
||||
AutoCompartment ac(cx, a);
|
||||
|
||||
if (!a->getGroup(cx))
|
||||
if (!JSObject::getGroup(cx, a))
|
||||
oomUnsafe.crash("JSObject::swap");
|
||||
if (!b->getGroup(cx))
|
||||
if (!JSObject::getGroup(cx, b))
|
||||
oomUnsafe.crash("JSObject::swap");
|
||||
|
||||
/*
|
||||
|
|
@ -3852,7 +3852,8 @@ displayAtomFromObjectGroup(ObjectGroup& group)
|
|||
bool
|
||||
JSObject::constructorDisplayAtom(JSContext* cx, js::MutableHandleAtom name)
|
||||
{
|
||||
ObjectGroup *g = getGroup(cx);
|
||||
RootedObject self(cx, this); // Temporary change.
|
||||
ObjectGroup *g = JSObject::getGroup(cx, self);
|
||||
if (!g)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue