2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2017-05-05 06:30:19 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
2020-02-18 21:15:42 +03:00
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* https://html.spec.whatwg.org/multipage/webappapis.html#the-promiserejectionevent-interface
|
2017-05-05 06:30:19 +03:00
|
|
|
*/
|
|
|
|
|
2019-11-04 21:08:54 +03:00
|
|
|
[Exposed=(Window,Worker)]
|
2017-05-05 06:30:19 +03:00
|
|
|
interface PromiseRejectionEvent : Event
|
|
|
|
{
|
2019-09-11 17:35:28 +03:00
|
|
|
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
|
|
|
|
|
2017-05-05 06:30:19 +03:00
|
|
|
[BinaryName="rejectedPromise"]
|
|
|
|
readonly attribute Promise<any> promise;
|
|
|
|
readonly attribute any reason;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary PromiseRejectionEventInit : EventInit {
|
|
|
|
required Promise<any> promise;
|
|
|
|
any reason;
|
|
|
|
};
|