Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e552158

Browse filesBrowse 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
Copy full SHA for e552158

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎lib/timers.js‎

Copy file name to clipboardExpand all lines: lib/timers.js
+3-3Lines 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-
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.