Open
Description
Version
No response
Platform
No response
Subsystem
process
What steps will reproduce the bug?
process.on('unhandledRejection', (err) => {console.trace('unhandledRejection', err);});
process.on('uncaughtExceptionMonitor', (err) => {console.trace('uncaughtExceptionMonitor', err);});
Promise.reject(new Error('from promise'));
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
There is some way to see the error in 'uncaughtExceptionMonitor'
, throwing inside of unhandledRejection
converts the type to uncaughtException
and loses context.
What do you see instead?
If you register unhandledRejection
there is no way to get the default behavior of seeing it in uncaughtExceptionMonitor
, it is completely prevented with no way to opt-out.
Additional information
No response