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
Previous context in:
The AMP project was recently surprised that promise rejections that are unhandled did not fire an
unhandledrejectionevent 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