1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.

This commit is contained in:
Gaming4JC 2019-06-08 18:54:17 -04:00 • committed by Roy Tam
commit 07cd213071
28 changed files with 69 additions and 58 deletions

View file

@ -307,7 +307,7 @@ JSObject::makeLazyGroup(JSContext* cx, HandleObject obj)
/* De-lazification of functions can GC, so we need to do it up here. */
if (obj->is<JSFunction>() && obj->as<JSFunction>().isInterpretedLazy()) {
RootedFunction fun(cx, &obj->as<JSFunction>());
if (!fun->getOrCreateScript(cx))
if (!JSFunction::getOrCreateScript(cx, fun))
return nullptr;
}