Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report unhandled promise rejections to devtools #26667

Open
jdm opened this issue May 26, 2020 · 1 comment
Open

Report unhandled promise rejections to devtools #26667

jdm opened this issue May 26, 2020 · 1 comment

Comments

@jdm
Copy link
Member

@jdm jdm commented May 26, 2020

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.

@jdm
Copy link
Member Author

@jdm jdm commented May 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.