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:
aryung chen authored and James M Snell committed 2017-11-22 12:07:33 -08:00
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);