mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-20 19:33:08 +09:00
1320408 - Part 20: Change PromiseObject::resolve and PromiseObject::reject to static method.
This commit is contained in:
parent
62eeeb76b5
commit
e5b36e01b9
4 changed files with 22 additions and 20 deletions
|
|
@ -4925,8 +4925,8 @@ ResolveOrRejectPromise(JSContext* cx, JS::HandleObject promiseObj, JS::HandleVal
|
|||
}
|
||||
|
||||
return reject
|
||||
? promise->reject(cx, resultOrReason)
|
||||
: promise->resolve(cx, resultOrReason);
|
||||
? PromiseObject::reject(cx, promise, resultOrReason)
|
||||
: PromiseObject::resolve(cx, promise, resultOrReason);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(bool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue