Detecting Unhandled Rejections with Node.js
Learn how Node.js detects and reports unhandled rejections.
We'll cover the following...
We'll cover the following...
Tracking unhandled rejections in Node.js
Node.js tracks unhandled promise rejections in a similar, but not identical, way that browsers do. There are two events in Node.js, but these are emitted on the process
object and have different capitalizations than the browser events:
unhandledRejection
: This is emitted when a