summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.idl
blob: 4785ca22b1f015a0903df1cb8cf9275b6952f887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#import <DOM/Event.idl>

[Exposed=(Window,Worker), UseNewAKString]
interface PromiseRejectionEvent : Event {
    constructor(DOMString type, PromiseRejectionEventInit eventInitDict);

    readonly attribute Promise<any> promise;
    readonly attribute any reason;
};

dictionary PromiseRejectionEventInit : EventInit {
    required Promise<any> promise;
    any reason;
};