Skip to content

Commit 9098e3c

Browse files
author
Tapani Moilanen
committed
feat: support uncaughtRejectionHandler
1 parent 5a02a74 commit 9098e3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ add.uncaughtExceptionHandler = function (hook) {
148148

149149
if (errHooks.length === 1) {
150150
process.once('uncaughtException', exit.bind(null, true, 1));
151+
process.once('uncaughtRejection', exit.bind(null, true, 1));
151152
}
152153
};
153154

0 commit comments

Comments
 (0)