Skip to content

Commit 0c18b90

Browse files
committed
timers: check for undefined instead of nullish value
1 parent 32851f3 commit 0c18b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/timers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ function getTimerCallbacks(runNextTicks) {
531531

532532
let list;
533533
let ranAtLeastOneList = false;
534-
while ((list = timerListQueue.peek()) != null) {
534+
while ((list = timerListQueue.peek()) !== undefined) {
535535
if (list.expiry > now) {
536536
nextExpiry = list.expiry;
537537
return timeoutInfo[0] > 0 ? nextExpiry : -nextExpiry;

0 commit comments

Comments
 (0)