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 32851f3 commit 0c18b90Copy full SHA for 0c18b90
lib/internal/timers.js
@@ -531,7 +531,7 @@ function getTimerCallbacks(runNextTicks) {
531
532
let list;
533
let ranAtLeastOneList = false;
534
- while ((list = timerListQueue.peek()) != null) {
+ while ((list = timerListQueue.peek()) !== undefined) {
535
if (list.expiry > now) {
536
nextExpiry = list.expiry;
537
return timeoutInfo[0] > 0 ? nextExpiry : -nextExpiry;
0 commit comments