Skip to content

Commit

Permalink
timers: named anonymous functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
js-kyle authored and trivikr committed May 3, 2018
1 parent 751c2d6 commit 482b662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 482b662

Please sign in to comment.