diff --git a/lib/timers.js b/lib/timers.js index 30bffb432ac26b..e7f13924db7e59 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -452,7 +452,7 @@ function rearm(timer, start = TimerWrap.now()) { } -const clearTimeout = exports.clearTimeout = function(timer) { +const clearTimeout = exports.clearTimeout = function clearTimeout(timer) { if (timer && timer._onTimeout) { timer._onTimeout = null; if (timer instanceof Timeout) { @@ -464,7 +464,7 @@ const clearTimeout = exports.clearTimeout = function(timer) { }; -exports.setInterval = function(callback, repeat, arg1, arg2, arg3) { +exports.setInterval = function setInterval(callback, repeat, arg1, arg2, arg3) { if (typeof callback !== 'function') { throw new ERR_INVALID_CALLBACK(); } @@ -773,7 +773,7 @@ setImmediate[internalUtil.promisify.custom] = function(value) { exports.setImmediate = setImmediate; -exports.clearImmediate = function(immediate) { +exports.clearImmediate = function clearImmediate(immediate) { if (!immediate || immediate._destroyed) return;