diff --git a/test/parallel/test-async-wrap-constructor.js b/test/parallel/test-async-wrap-constructor.js index 86fce0e3f39..5fdf9e4fdf8 100644 --- a/test/parallel/test-async-wrap-constructor.js +++ b/test/parallel/test-async-wrap-constructor.js @@ -7,7 +7,8 @@ const assert = require('assert'); const async_hooks = require('async_hooks'); for (const badArg of [0, 1, false, true, null, 'hello']) { - for (const field of ['init', 'before', 'after', 'destroy']) { + const hookNames = ['init', 'before', 'after', 'destroy', 'promiseResolve']; + for (const field of hookNames) { assert.throws(() => { async_hooks.createHook({ [field]: badArg }); }, common.expectsError({