mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-20 03:13:09 +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
|
|
@ -1662,11 +1662,11 @@ MatchNumericComparator(JSContext* cx, const Value& v)
|
|||
if (!obj.is<JSFunction>())
|
||||
return Match_None;
|
||||
|
||||
JSFunction* fun = &obj.as<JSFunction>();
|
||||
RootedFunction fun(cx, &obj.as<JSFunction>());
|
||||
if (!fun->isInterpreted() || fun->isClassConstructor())
|
||||
return Match_None;
|
||||
|
||||
JSScript* script = fun->getOrCreateScript(cx);
|
||||
JSScript* script = JSFunction::getOrCreateScript(cx, fun);
|
||||
if (!script)
|
||||
return Match_Failure;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue