mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user