@@ -31,7 +31,7 @@ const isChild = process.argv[2] === 'child';
31
31
const enabledCategories = getEnabledCategoriesFromCommandLine ( ) ;
32
32
33
33
assert . strictEqual ( getEnabledCategories ( ) , enabledCategories ) ;
34
- [ 1 , 'foo' , true , false , null , undefined ] . forEach ( ( i ) => {
34
+ for ( const i of [ 1 , 'foo' , true , false , null , undefined ] ) {
35
35
assert . throws ( ( ) => createTracing ( i ) , {
36
36
code : 'ERR_INVALID_ARG_TYPE' ,
37
37
name : 'TypeError'
@@ -40,7 +40,7 @@ assert.strictEqual(getEnabledCategories(), enabledCategories);
40
40
code : 'ERR_INVALID_ARG_TYPE' ,
41
41
name : 'TypeError'
42
42
} ) ;
43
- } ) ;
43
+ }
44
44
45
45
assert . throws (
46
46
( ) => createTracing ( { categories : [ ] } ) ,
@@ -156,8 +156,7 @@ function testApiInChildProcess(execArgs, cb) {
156
156
assert . strictEqual (
157
157
traces . length ,
158
158
expectedBegins . length + expectedEnds . length ) ;
159
-
160
- traces . forEach ( ( trace ) => {
159
+ for ( const trace of traces ) {
161
160
assert . strictEqual ( trace . pid , proc . pid ) ;
162
161
switch ( trace . ph ) {
163
162
case 'b' : {
@@ -175,7 +174,7 @@ function testApiInChildProcess(execArgs, cb) {
175
174
default :
176
175
assert . fail ( 'Unexpected trace event phase' ) ;
177
176
}
178
- } ) ;
177
+ }
179
178
process . chdir ( parentDir ) ;
180
179
cb && process . nextTick ( cb ) ;
181
180
} ) ) ;
0 commit comments