Skip to content

Commit f2e0fce

Browse files
jabro86RafaelGSS
authored andcommitted
test: replace forEach() with for-loop
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>
1 parent b4935dd commit f2e0fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-trace-events-vm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ if (process.argv[2] === 'child') {
3232
fs.readFile(file, common.mustCall((err, data) => {
3333
const traces = JSON.parse(data.toString()).traceEvents
3434
.filter((trace) => trace.cat !== '__metadata');
35-
traces.forEach((trace) => {
35+
for (const trace of traces) {
3636
assert.strictEqual(trace.pid, proc.pid);
3737
assert(names.includes(trace.name));
38-
});
38+
}
3939
}));
4040
}));
4141
}

0 commit comments

Comments
 (0)