mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +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
|
|
@ -3268,7 +3268,7 @@ js::detail::CopyScript(JSContext* cx, HandleScript src, HandleScript dst,
|
|||
} else {
|
||||
if (innerFun->isInterpretedLazy()) {
|
||||
AutoCompartment ac(cx, innerFun);
|
||||
if (!innerFun->getOrCreateScript(cx))
|
||||
if (!JSFunction::getOrCreateScript(cx, innerFun))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -4296,7 +4296,7 @@ JSScript::AutoDelazify::holdScript(JS::HandleFunction fun)
|
|||
script_ = fun->nonLazyScript();
|
||||
} else {
|
||||
JSAutoCompartment ac(cx_, fun);
|
||||
script_ = fun->getOrCreateScript(cx_);
|
||||
script_ = JSFunction::getOrCreateScript(cx_, fun);
|
||||
if (script_) {
|
||||
oldDoNotRelazify_ = script_->doNotRelazify_;
|
||||
script_->setDoNotRelazify(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue