1320408 - Part 4: Change JSObject::getGroup to static method.

This commit is contained in:
Gaming4JC 2019-06-08 19:20:00 -04:00 committed by Roy Tam
commit 87bfc02f09
14 changed files with 56 additions and 45 deletions

View file

@ -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)));