Skip to content

Commit e552158

Browse files
js-kyleMylesBorins
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 b0ed31c commit e552158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/timers.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function rearm(timer, start = TimerWrap.now()) {
453453
}
454454

455455

456-
const clearTimeout = exports.clearTimeout = function(timer) {
456+
const clearTimeout = exports.clearTimeout = function clearTimeout(timer) {
457457
if (timer && timer._onTimeout) {
458458
timer._onTimeout = null;
459459
if (timer instanceof Timeout) {
@@ -465,7 +465,7 @@ const clearTimeout = exports.clearTimeout = function(timer) {
465465
};
466466

467467

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

776776

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

0 commit comments

Comments
 (0)