File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ const assert = require('assert');
4
4
const fork = require ( 'child_process' ) . fork ;
5
5
6
6
if ( process . argv [ 2 ] === 'child' ) {
7
- process . send ( 'ok' , common . mustCall ( function ( err ) {
7
+ process . send ( 'ok' , common . mustCall ( ( err ) => {
8
8
assert . strictEqual ( err , null ) ;
9
9
} ) ) ;
10
10
} else {
11
11
const child = fork ( process . argv [ 1 ] , [ 'child' ] ) ;
12
- child . on ( 'message' , common . mustCall ( function ( message ) {
12
+ child . on ( 'message' , common . mustCall ( ( message ) => {
13
13
assert . strictEqual ( message , 'ok' ) ;
14
14
} ) ) ;
15
- child . on ( 'exit' , common . mustCall ( function ( exitCode , signalCode ) {
15
+ child . on ( 'exit' , common . mustCall ( ( exitCode , signalCode ) => {
16
16
assert . strictEqual ( exitCode , 0 ) ;
17
17
assert . strictEqual ( signalCode , null ) ;
18
18
} ) ) ;
You can’t perform that action at this time.
0 commit comments