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:
parent
f05653dc45
commit
3129b2c035
@ -295,7 +295,7 @@ function setupNextTick() {
|
|||||||
// about to exit since the callback would not have a chance to be executed.
|
// about to exit since the callback would not have a chance to be executed.
|
||||||
function internalNextTick(triggerAsyncId, callback) {
|
function internalNextTick(triggerAsyncId, callback) {
|
||||||
if (typeof callback !== 'function')
|
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(Number.isSafeInteger(triggerAsyncId) || triggerAsyncId === null)
|
||||||
// CHECK(triggerAsyncId > 0 || triggerAsyncId === null)
|
// CHECK(triggerAsyncId > 0 || triggerAsyncId === null)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user