We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11cb03 commit 8204b0fCopy full SHA for 8204b0f
lib/timers.js
@@ -465,8 +465,8 @@ function rearm(timer, start = TimerWrap.now()) {
465
466
467
const clearTimeout = exports.clearTimeout = function(timer) {
468
- if (timer && (timer[kOnTimeout] || timer._onTimeout)) {
469
- timer[kOnTimeout] = timer._onTimeout = null;
+ if (timer && timer._onTimeout) {
+ timer._onTimeout = null;
470
if (timer instanceof Timeout) {
471
timer.close(); // for after === 0
472
} else {
0 commit comments