(error: Error)
| 417 | } |
| 418 | |
| 419 | const onUncaughtException = (error: Error) => { |
| 420 | if ( |
| 421 | isExpectedControlFlowError(error, { |
| 422 | stdinStreamMode: useStdinPromptStream, |
| 423 | shuttingDown: isShuttingDown, |
| 424 | operation: "runtime", |
| 425 | }) |
| 426 | ) { |
| 427 | return |
| 428 | } |
| 429 | |
| 430 | emitRuntimeError(error, "uncaughtException") |
| 431 | |
| 432 | if (signalOnlyExit) { |
| 433 | return |
| 434 | } |
| 435 | |
| 436 | void shutdown("uncaughtException", 1) |
| 437 | } |
| 438 | |
| 439 | const onUnhandledRejection = (reason: unknown) => { |
| 440 | if ( |
nothing calls this directly
no test coverage detected