mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
process: use internal/errors in internalNextTick
PR-URL: https://github.com/nodejs/node/pull/13982 Refs: https://github.com/nodejs/node/pull/12892 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -295,7 +295,7 @@ function setupNextTick() {
|
||||
// about to exit since the callback would not have a chance to be executed.
|
||||
function internalNextTick(triggerAsyncId, callback) {
|
||||
if (typeof callback !== 'function')
|
||||
throw new TypeError('callback is not a function');
|
||||
throw new errors.TypeError('ERR_INVALID_CALLBACK');
|
||||
// CHECK(Number.isSafeInteger(triggerAsyncId) || triggerAsyncId === null)
|
||||
// CHECK(triggerAsyncId > 0 || triggerAsyncId === null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user