mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
1320408 - Part 9: Change JSObject::setFlags and depending methods to static method.
This commit is contained in:
parent
7e0b20a7bf
commit
7f856ff769
14 changed files with 61 additions and 55 deletions
|
|
@ -329,9 +329,9 @@ GlobalObject::createInternal(JSContext* cx, const Class* clasp)
|
|||
|
||||
cx->compartment()->initGlobal(*global);
|
||||
|
||||
if (!global->setQualifiedVarObj(cx))
|
||||
if (!JSObject::setQualifiedVarObj(cx, global))
|
||||
return nullptr;
|
||||
if (!global->setDelegate(cx))
|
||||
if (!JSObject::setDelegate(cx, global))
|
||||
return nullptr;
|
||||
|
||||
return global;
|
||||
|
|
@ -595,7 +595,7 @@ CreateBlankProto(JSContext* cx, const Class* clasp, HandleObject proto, HandleOb
|
|||
|
||||
RootedNativeObject blankProto(cx, NewNativeObjectWithGivenProto(cx, clasp, proto,
|
||||
SingletonObject));
|
||||
if (!blankProto || !blankProto->setDelegate(cx))
|
||||
if (!blankProto || !JSObject::setDelegate(cx, blankProto))
|
||||
return nullptr;
|
||||
|
||||
return blankProto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue