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

@ -1725,7 +1725,7 @@ js::intrinsic_GetElemBaseForLambda(JSContext* cx, unsigned argc, Value* vp)
if (!fun->isInterpreted() || fun->isClassConstructor())
return true;
JSScript* script = fun->getOrCreateScript(cx);
JSScript* script = JSFunction::getOrCreateScript(cx, fun);
if (!script)
return false;