Skip to content

Commit

Permalink
test: replace forEach() with for-loop
Browse files Browse the repository at this point in the history
PR-URL: #50596
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
jabro86 authored and UlisesGascon committed Dec 19, 2023
1 parent 549d442 commit 6584dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-trace-events-vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ if (process.argv[2] === 'child') {
fs.readFile(file, common.mustCall((err, data) => {
const traces = JSON.parse(data.toString()).traceEvents
.filter((trace) => trace.cat !== '__metadata');
traces.forEach((trace) => {
for (const trace of traces) {
assert.strictEqual(trace.pid, proc.pid);
assert(names.includes(trace.name));
});
}
}));
}));
}

0 comments on commit 6584dd8

Please sign in to comment.