| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f066246 commit 63a67f8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -490,7 +490,7 @@ function getTimerCallbacks(runNextTicks) { | |||
| 490 | 490 | ||
| 491 | 491 | let list; | |
| 492 | 492 | let ranAtLeastOneList = false; | |
| 493 | - while (list = timerListQueue.peek()) { | ||
| 493 | + while ((list = timerListQueue.peek()) != null) { | ||
| 494 | 494 | if (list.expiry > now) { | |
| 495 | 495 | nextExpiry = list.expiry; | |
| 496 | 496 | return refCount > 0 ? nextExpiry : -nextExpiry; | |
@@ -511,7 +511,7 @@ function getTimerCallbacks(runNextTicks) { | |||
| 511 | 511 | ||
| 512 | 512 | let ranAtLeastOneTimer = false; | |
| 513 | 513 | let timer; | |
| 514 | - while (timer = L.peek(list)) { | ||
| 514 | + while ((timer = L.peek(list)) != null) { | ||
| 515 | 515 | const diff = now - timer._idleStart; | |
| 516 | 516 | ||
| 517 | 517 | // Check if this loop iteration is too early for the next timer. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments