Lesson 8.1
Where handler failures escape
Trace a throwing handler through dispatch, App.handle, and the connection pump, then reproduce the unhandled rejection without opening a socket.
What you will build
- Trace a synchronous throw from a handler to the rejected promise discarded by Connection._onData.
- Explain how Promise.try turns a synchronous throw and an async rejection into the same result for dispatch.
- State what Node's default unhandled-rejection mode does when no rejection hook is installed.