mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 13:07:31 +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
|
|
@ -816,7 +816,7 @@ NonSyntacticVariablesObject::create(JSContext* cx)
|
|||
return nullptr;
|
||||
|
||||
MOZ_ASSERT(obj->isUnqualifiedVarObj());
|
||||
if (!obj->setQualifiedVarObj(cx))
|
||||
if (!JSObject::setQualifiedVarObj(cx, obj))
|
||||
return nullptr;
|
||||
|
||||
obj->initEnclosingEnvironment(&cx->global()->lexicalEnvironment());
|
||||
|
|
@ -957,7 +957,7 @@ LexicalEnvironmentObject::createHollowForDebug(JSContext* cx, Handle<LexicalScop
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (!env->setFlags(cx, BaseShape::NOT_EXTENSIBLE, JSObject::GENERATE_SHAPE))
|
||||
if (!JSObject::setFlags(cx, env, BaseShape::NOT_EXTENSIBLE, JSObject::GENERATE_SHAPE))
|
||||
return nullptr;
|
||||
|
||||
env->initScopeUnchecked(scope);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue