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
Register an uncaughtExceptionMonitor handler on process, which itself throws asynchronously
Throw an error
How often does it reproduce? Is there a required condition?
What is the expected behavior?
I'm not sure what should happen here, currently the entire uncaughtException chain is handled synchronously, I'm not certain what adding async to the mix would do. Please advise.
What do you see instead?
Process enters an infinite asynchronous recursion, whereby the monitor invokes the uncaughtRejection which invokes the uncaughtExceptionMonitor and vice versa.
...
...
...
Monitored Error! Error: Oopsie!
at process.<anonymous> (/Users/madara/projects/playground/test.js:3:9)
at process.emit (node:events:369:20)
at process._fatalException (node:internal/process/execution:160:13)
at processPromiseRejections (node:internal/process/promises:245:11)
at processTicksAndRejections (node:internal/process/task_queues:95:32)
Handled error! Error: Oopsie!
at process.<anonymous> (/Users/madara/projects/playground/test.js:3:9)
at process.emit (node:events:369:20)
at process._fatalException (node:internal/process/execution:160:13)
at processPromiseRejections (node:internal/process/promises:245:11)
at processTicksAndRejections (node:internal/process/task_queues:95:32)
Monitored Error! Error: Oopsie!
at process.<anonymous> (/Users/madara/projects/playground/test.js:3:9)
at process.emit (node:events:369:20)
at process._fatalException (node:internal/process/execution:160:13)
at processPromiseRejections (node:internal/process/promises:245:11)
at processTicksAndRejections (node:internal/process/task_queues:95:32)
Handled error! Error: Oopsie!
at process.<anonymous> (/Users/madara/projects/playground/test.js:3:9)
at process.emit (node:events:369:20)
at process._fatalException (node:internal/process/execution:160:13)
at processPromiseRejections (node:internal/process/promises:245:11)
at processTicksAndRejections (node:internal/process/task_queues:95:32)
^C
(only stops at interrupt)
The text was updated successfully, but these errors were encountered:
What steps will reproduce the bug?
uncaughtExceptionMonitor
handler on process, which itself throws asynchronouslyHow often does it reproduce? Is there a required condition?
What is the expected behavior?
I'm not sure what should happen here, currently the entire uncaughtException chain is handled synchronously, I'm not certain what adding async to the mix would do. Please advise.
What do you see instead?
Process enters an infinite asynchronous recursion, whereby the monitor invokes the uncaughtRejection which invokes the uncaughtExceptionMonitor and vice versa.
Additional information
Example file:
Output:
(only stops at interrupt)
The text was updated successfully, but these errors were encountered: