diff options
author | Kyle Martin <kyle.martin@hotmail.co.nz> | 2018-04-29 20:49:06 +1200 |
---|---|---|
committer | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2018-05-02 22:32:24 -0700 |
commit | 482b662cb1d698a7b6dae1b31232451893c72b15 (patch) | |
tree | e161c3d062ca3e4e2a73c25d35a8a7c6812c034f /lib | |
parent | 751c2d6a8da7aae5db730d87b878dea761b384e0 (diff) | |
download | android-node-v8-482b662cb1d698a7b6dae1b31232451893c72b15.tar.gz android-node-v8-482b662cb1d698a7b6dae1b31232451893c72b15.tar.bz2 android-node-v8-482b662cb1d698a7b6dae1b31232451893c72b15.zip |
timers: named anonymous functions
PR-URL: https://github.com/nodejs/node/pull/20397
Refs: https://github.com/nodejs/node/issues/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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/timers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/timers.js b/lib/timers.js index 30bffb432a..e7f13924db 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; |