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

[Exposed=(Window,Worker)]
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;
};