mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
1320408 - Part 1: Change JSFunction::getLength and JSFunction::getUnresolvedLength to static method.
This commit is contained in:
parent
85df465355
commit
6633322957
4 changed files with 19 additions and 19 deletions
|
|
@ -477,7 +477,7 @@ intrinsic_FinishBoundFunctionInit(JSContext* cx, unsigned argc, Value* vp)
|
|||
// Try to avoid invoking the resolve hook.
|
||||
if (targetObj->is<JSFunction>() && !targetObj->as<JSFunction>().hasResolvedLength()) {
|
||||
RootedValue targetLength(cx);
|
||||
if (!targetObj->as<JSFunction>().getUnresolvedLength(cx, &targetLength))
|
||||
if (!JSFunction::getUnresolvedLength(cx, targetObj.as<JSFunction>(), &targetLength))
|
||||
return false;
|
||||
|
||||
length = Max(0.0, targetLength.toNumber() - argCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue