Skip to content

unhandledrejection should fire even for muted scripts #5051

@jridgewell

Description

@jridgewell

Previous context in:

The AMP project was recently surprised that promise rejections that are unhandled did not fire an unhandledrejection event when the script is cross-origin.

I understand the PII risk that lead to muting script errors to begin with, but we still expected to receive a "Script error." error. We have an alert setup to monitor for that error message and ping us whenever there is a spike.

So, I want to contest the "it's useless" reasoning for not firing any error when a promise rejection is unhandled. The raw number of muted errors that we receive is useful for telling us if something has gone horribly wrong with a release.

/cc @domenic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions