import { Event } from './Event.mjs';

//https://html.spec.whatwg.org/multipage/webappapis.html#promiserejectionevent
class PromiseRejectionEvent extends Event {
  constructor(type, eventInitDict) {
    super(type, eventInitDict);
    this.promise = eventInitDict.promise;
    this.reason = eventInitDict.reason;
  }
}

export { PromiseRejectionEvent };
