Skip to content

Commit 482b662

Browse files
js-kyletrivikr
authored andcommitted
timers: named anonymous functions
PR-URL: #20397 Refs: #8913 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 751c2d6 commit 482b662

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/timers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function rearm(timer, start = TimerWrap.now()) {
452452
}
453453

454454

455-
const clearTimeout = exports.clearTimeout = function(timer) {
455+
const clearTimeout = exports.clearTimeout = function clearTimeout(timer) {
456456
if (timer && timer._onTimeout) {
457457
timer._onTimeout = null;
458458
if (timer instanceof Timeout) {
@@ -464,7 +464,7 @@ const clearTimeout = exports.clearTimeout = function(timer) {
464464
};
465465

466466

467-
exports.setInterval = function(callback, repeat, arg1, arg2, arg3) {
467+
exports.setInterval = function setInterval(callback, repeat, arg1, arg2, arg3) {
468468
if (typeof callback !== 'function') {
469469
throw new ERR_INVALID_CALLBACK();
470470
}
@@ -773,7 +773,7 @@ setImmediate[internalUtil.promisify.custom] = function(value) {
773773
exports.setImmediate = setImmediate;
774774

775775

776-
exports.clearImmediate = function(immediate) {
776+
exports.clearImmediate = function clearImmediate(immediate) {
777777
if (!immediate || immediate._destroyed)
778778
return;
779779

0 commit comments

Comments
 (0)