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');
44const fork = require ( 'child_process' ) . fork ;
55
66if ( process . argv [ 2 ] === 'child' ) {
7- process . send ( 'ok' , common . mustCall ( function ( err ) {
7+ process . send ( 'ok' , common . mustCall ( ( err ) => {
88 assert . strictEqual ( err , null ) ;
99 } ) ) ;
1010} else {
1111 const child = fork ( process . argv [ 1 ] , [ 'child' ] ) ;
12- child . on ( 'message' , common . mustCall ( function ( message ) {
12+ child . on ( 'message' , common . mustCall ( ( message ) => {
1313 assert . strictEqual ( message , 'ok' ) ;
1414 } ) ) ;
15- child . on ( 'exit' , common . mustCall ( function ( exitCode , signalCode ) {
15+ child . on ( 'exit' , common . mustCall ( ( exitCode , signalCode ) => {
1616 assert . strictEqual ( exitCode , 0 ) ;
1717 assert . strictEqual ( signalCode , null ) ;
1818 } ) ) ;
You can’t perform that action at this time.
0 commit comments