We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3cd57 commit 3a65c09Copy full SHA for 3a65c09
lib/internal/process/next_tick.js
@@ -295,7 +295,7 @@ function setupNextTick() {
295
// about to exit since the callback would not have a chance to be executed.
296
function internalNextTick(triggerAsyncId, callback) {
297
if (typeof callback !== 'function')
298
- throw new TypeError('callback is not a function');
+ throw new errors.TypeError('ERR_INVALID_CALLBACK');
299
// CHECK(Number.isSafeInteger(triggerAsyncId) || triggerAsyncId === null)
300
// CHECK(triggerAsyncId > 0 || triggerAsyncId === null)
301
0 commit comments