Skip to content

Commit e552158

Browse files
js-kyleMylesBorins
authored andcommitted
timers: named anonymous functions
PR-URL: #20397 Refs: #8913 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
1 parent b0ed31c commit e552158

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/timers.js‎

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

455455

456-
constclearTimeout=exports.clearTimeout=function(timer){
456+
constclearTimeout=exports.clearTimeout=functionclearTimeout(timer){
457457
if(timer&&timer._onTimeout){
458458
timer._onTimeout=null;
459459
if(timerinstanceofTimeout){
@@ -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=functionsetInterval(callback,repeat,arg1,arg2,arg3){
469469
if(typeofcallback!=='function'){
470470
thrownewERR_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=functionclearImmediate(immediate){
778778
if(!immediate||immediate._destroyed)
779779
return;
780780

0 commit comments

Comments
 (0)