mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 19:17:31 +09:00
1320408 - Part 2: Change JSFunction::getOrCreateScript to static method.
This commit is contained in:
parent
6633322957
commit
07cd213071
28 changed files with 69 additions and 58 deletions
|
|
@ -952,7 +952,7 @@ js::CreateThisForFunctionWithProto(JSContext* cx, HandleObject callee, HandleObj
|
|||
}
|
||||
|
||||
if (res) {
|
||||
JSScript* script = callee->as<JSFunction>().getOrCreateScript(cx);
|
||||
JSScript* script = JSFunction::getOrCreateScript(cx, callee.as<JSFunction>());
|
||||
if (!script)
|
||||
return nullptr;
|
||||
TypeScript::SetThis(cx, script, TypeSet::ObjectType(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue