process: check for null instead of falsy in while loop

This prepares the code for the no-cond-assign ESLint rule.

PR-URL: https://github.com/nodejs/node/pull/41614
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Rich Trott
2022-01-20 06:28:03 -08:00
parent 0bc642202f
commit e044a5d4e9

View File

@@ -68,7 +68,7 @@ function runNextTicks() {
function processTicksAndRejections() {
let tock;
do {
while (tock = queue.shift()) {
while ((tock = queue.shift()) !== null) {
const asyncId = tock[async_id_symbol];
emitBefore(asyncId, tock[trigger_async_id_symbol], tock);