Skip to content

Report unhandled promise rejections to devtools #26667

Open

Description

@jdm

When there's no explicit unhandledrejection listener, we should do useful things like printing a message to stdout and sending a message to the devtools. We should also see if Firefox does anything smart here.

Activity

  1. added
    I-papercut
    on May 26, 2020
  2. jdm commented on May 26, 2020

    @jdm
    MemberAuthor

    For what it's worth, a user script containing:

    onunhandledrejection = function(e) {
        throw e;
    };

    yields very helpful output on pages that are otherwise uninformative sometimes.

  3. webbedspace commented on Mar 16, 2026

    @webbedspace

    This is an issue I've encountered when writing test cases for async features such as navigator.storage.getDirectory(): ReferenceErrors are eaten up entirely.

    <!doctype html>
    <script>
      async function D() {
        await fiddledeedoo()
      }
      D()
    </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-devtoolsI-papercut

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions