1320408 - Part 9: Change JSObject::setFlags and depending methods to static method.

This commit is contained in:
Gaming4JC 2019-06-08 19:49:29 -04:00 committed by Roy Tam
commit 7f856ff769
14 changed files with 61 additions and 55 deletions

View file

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