mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
1320408 - Part 21: Change PromiseObject::onSettled to static method.
This commit is contained in:
parent
e5b36e01b9
commit
f376135778
2 changed files with 4 additions and 5 deletions
|
|
@ -603,7 +603,7 @@ ResolvePromise(JSContext* cx, Handle<PromiseObject*> promise, HandleValue valueO
|
|||
|
||||
// Now that everything else is done, do the things the debugger needs.
|
||||
// Step 7 of RejectPromise implemented in onSettled.
|
||||
promise->onSettled(cx);
|
||||
PromiseObject::onSettled(cx, promise);
|
||||
|
||||
// Step 7 of FulfillPromise.
|
||||
// Step 8 of RejectPromise.
|
||||
|
|
@ -2671,10 +2671,9 @@ PromiseObject::reject(JSContext* cx, Handle<PromiseObject*> promise, HandleValue
|
|||
return Call(cx, funVal, UndefinedHandleValue, args, &dummy);
|
||||
}
|
||||
|
||||
void
|
||||
PromiseObject::onSettled(JSContext* cx)
|
||||
/* static */ void
|
||||
PromiseObject::onSettled(JSContext* cx, Handle<PromiseObject*> promise)
|
||||
{
|
||||
Rooted<PromiseObject*> promise(cx, this);
|
||||
RootedObject stack(cx);
|
||||
if (cx->options().asyncStack() || cx->compartment()->isDebuggee()) {
|
||||
if (!JS::CaptureCurrentStack(cx, &stack, JS::StackCapture(JS::AllFrames()))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue