<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Support for promise rejection events (unhandledrejection)"
   href="https://bugs.webkit.org/show_bug.cgi?id=150358#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Support for promise rejection events (unhandledrejection)"
   href="https://bugs.webkit.org/show_bug.cgi?id=150358">bug 150358</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=295505&amp;action=diff" name="attach_295505" title="[PATCH] Work in Progress">attachment 295505</a> <a href="attachment.cgi?id=295505&amp;action=edit" title="[PATCH] Work in Progress">[details]</a></span>
[PATCH] Work in Progress

I haven't written tests or updated LayoutTests, but this was a preliminary attempt that looked good in my most basic tests. A few things that need to be handled:

    - PromiseRejectionEvent
      - when constructed with a value for &quot;promise&quot; that is not an instance of a Promise we should wrap it in a Promise (Blink does this)
        - new PromiseRejectionEvent(&quot;event-name&quot;, {promise:1}) =&gt; should be as if {promise: Promise.resolve(1)}

    - Layout Tests
      - update existing
      - write new tests covering the Event and event handlers

    - Web Inspector support (probably a follow-up bug)
      - pause on unhandled rejection
      - if log errors for unhandled rejections then later suppress these errors when the promise does get handled (&quot;revoke&quot;)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>