chromium/third_party/blink/renderer/core/events/promise_rejection_event.idl

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://html.spec.whatwg.org/C/#promiserejectionevent

[
    Exposed=(Window,Worker)
] interface PromiseRejectionEvent : Event {
    [CallWith=ScriptState] constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
    [CallWith=ScriptState] readonly attribute Promise<any> promise;
    [CallWith=ScriptState] readonly attribute any reason;
};