mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +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
|
|
@ -3488,8 +3488,8 @@ GroupOf(JSContext* cx, unsigned argc, JS::Value* vp)
|
|||
JS_ReportErrorASCII(cx, "groupOf: object expected");
|
||||
return false;
|
||||
}
|
||||
JSObject* obj = &args[0].toObject();
|
||||
ObjectGroup* group = obj->getGroup(cx);
|
||||
RootedObject obj(cx, &args[0].toObject());
|
||||
ObjectGroup* group = JSObject::getGroup(cx, obj);
|
||||
if (!group)
|
||||
return false;
|
||||
args.rval().set(JS_NumberValue(double(uintptr_t(group) >> 3)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue