You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
if unhandledRejection is registered it eats the exception and as a result no uncaught exception happens (uncaughtException is also not emitted).
I assume this is intended similar as uncaughtException actually eats the exception and process is not ended.
Maybe adding a never listener unhandledRejectionMonitor similar to uncaughtExceptionMonitor which just indicates the unhandled rejection without any side effect would be the way forward here?
@Flarna i'm fairly open to ideas, marking a rejection as to be reported seems fine. Right now throwing inside of unhandledRejection does this but also causes some other stuff to happen and loses fromPromise. I'm a bit skeptical of adding a new event for this though. At least for use cases I don't see a need to report unhandledRejections that are actually handled intentionally by the program, but there is no way to make them as unhandled when you use unhandledRejection events.
Version
No response
Platform
No response
Subsystem
process
What steps will reproduce the bug?
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 ofunhandledRejection
converts the type touncaughtException
and loses context.What do you see instead?
If you register
unhandledRejection
there is no way to get the default behavior of seeing it inuncaughtExceptionMonitor
, it is completely prevented with no way to opt-out.Additional information
No response
The text was updated successfully, but these errors were encountered: