mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: use common.crashOnUnhandledRejection
PR-URL: https://github.com/nodejs/node/pull/17221 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
ab99a89020
commit
e34ccebd2a
1 file changed
+1
@@ -4,6 +4,7 @@ const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const initHooks = require('./init-hooks');
|
||||
const { checkInvocations } = require('./hook-checks');
|
||||
common.crashOnUnhandledRejection();
|
||||
|
||||
const p = new Promise(common.mustCall(function executor(resolve, reject) {
|
||||
resolve(5);
|
||||
|
||||
Reference in new issue
Block a user