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

@ -3489,7 +3489,7 @@ CreateNonSyntacticEnvironmentChain(JSContext* cx, AutoObjectVector& envChain,
// declaration was qualified by "var". There is only sadness.
//
// See JSObject::isQualifiedVarObj.
if (!env->setQualifiedVarObj(cx))
if (!JSObject::setQualifiedVarObj(cx, env))
return false;
// Also get a non-syntactic lexical environment to capture 'let' and