mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Issue #2435 - Implement notifying of rejected promises
Based-on: m-c 1362272
This commit is contained in:
parent
65d72c5682
commit
9126a4836f
4 changed files with 165 additions and 2 deletions
|
|
@ -4611,6 +4611,15 @@ GetPromiseID(JS::HandleObject promise);
|
|||
extern JS_PUBLIC_API(JS::Value)
|
||||
GetPromiseResult(JS::HandleObject promise);
|
||||
|
||||
/**
|
||||
* Returns whether the given promise's rejection is already handled or not.
|
||||
*
|
||||
* The caller must check the given promise is rejected before checking it's
|
||||
* handled or not.
|
||||
*/
|
||||
extern JS_PUBLIC_API(bool)
|
||||
GetPromiseIsHandled(JS::HandleObject promise);
|
||||
|
||||
/**
|
||||
* Returns a js::SavedFrame linked list of the stack that lead to the given
|
||||
* Promise's allocation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue