diff --git a/test/parallel/test-timers-promisified.js b/test/parallel/test-timers-promisified.js index 6cd932a2d169ff..bd52d2166cf88a 100644 --- a/test/parallel/test-timers-promisified.js +++ b/test/parallel/test-timers-promisified.js @@ -104,6 +104,12 @@ process.on('multipleResolves', common.mustNotCall()); code: 'ERR_INVALID_ARG_TYPE' })).then(common.mustCall()); + Promise.all( + [1, '', Infinity, null, {}].map( + (ref) => assert.rejects(setImmediate(10, { ref })), { + code: 'ERR_INVALID_ARG_TYPE' + })).then(common.mustCall()); + Promise.all( [1, '', false, Infinity].map( (i) => assert.rejects(setTimeout(10, null, i)), {