Open
Description
The idea here would be, whenever an unhandled rejection occurs, add it to some array (or perhaps WeakMap
). If it gets handled later, remove it from that array.
Then, allow printing of the unhandled rejection list. Either add is as a property to the library, or to a global environment (cf #2), or print it automatically on program exit/window onload, or print it periodically and automatically in debug mode, or...
This seems unlikely to solve the problem by itself. It's not a great experience to debug for hours before thinking to check the magic unhandled rejection list. Tooling could help, but then we're back at #2.