Skip to content

Commit a48d650

Browse files
committed
test: replace forEach() with for-loop
1 parent 3e14cfb commit a48d650

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)