Skip to content

Commit

Permalink
test: replace forEach with for..of in
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#49820
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent cf95e5f commit 6ecf529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graal-nodejs/test/parallel/test-http2-client-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { getEventListeners } = require('events');
server.close();
});

destroyCallbacks.forEach((destroyCallback) => {
for (const destroyCallback of destroyCallbacks) {
const client = h2.connect(`http://localhost:${server.address().port}`);
client.on('connect', common.mustCall(() => {
const socket = client[kSocket];
Expand All @@ -45,7 +45,7 @@ const { getEventListeners } = require('events');

countdown.dec();
}));
});
}
}));
}

Expand Down

0 comments on commit 6ecf529

Please sign in to comment.