test: add common.crashOnUnhandledRejection()
PR-URL: https://github.com/nodejs/node/pull/17247 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
b1acba363d
commit
694e7baf00
@ -9,6 +9,7 @@ const makeCallback = binding.makeCallback;
|
||||
// Make sure this is run in the future.
|
||||
const mustCallCheckDomains = common.mustCall(checkDomains);
|
||||
|
||||
common.crashOnUnhandledRejection();
|
||||
|
||||
// Make sure that using MakeCallback allows the error to propagate.
|
||||
assert.throws(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user