Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/timers.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -453,7 +453,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@@ -465,7 +465,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 DownExpand Up@@ -774,7 +774,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