| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 55c423b commit c3c2b2b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,12 +32,11 @@ proc.once('exit', common.mustCall(() => { | |||
| 32 | 32 | const traces = JSON.parse(data.toString()).traceEvents; | |
| 33 | 33 | assert(traces.length > 0); | |
| 34 | 34 | let count = 0; | |
| 35 | - traces.forEach((trace) => { | ||
| 36 | - if (trace.cat === 'node,node.net,node.net.native' && | ||
| 37 | - trace.name === 'connect') { | ||
| 35 | + for (const trace of traces) { | ||
| 36 | + if (trace.cat === 'node,node.net,node.net.native' && trace.name === 'connect') { | ||
| 38 | 37 | count++; | |
| 39 | 38 | } | |
| 40 | - }); | ||
| 39 | + } | ||
| 41 | 40 | // Two begin, two end | |
| 42 | 41 | assert.strictEqual(count, 4); | |
| 43 | 42 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments