@@ -18,7 +18,7 @@ const { validateString } = require('internal/validators');
18
18
const EventEmitter = require ( 'events' ) ;
19
19
const net = require ( 'net' ) ;
20
20
const dgram = require ( 'dgram' ) ;
21
- const util = require ( 'util' ) ;
21
+ const inspect = require ( 'internal/ util/inspect' ) . inspect ;
22
22
const assert = require ( 'internal/assert' ) ;
23
23
24
24
const { Process } = internalBinding ( 'process_wrap' ) ;
@@ -887,7 +887,7 @@ function _validateStdio(stdio, sync) {
887
887
throw new ERR_INVALID_OPT_VALUE ( 'stdio' , stdio ) ;
888
888
}
889
889
} else if ( ! Array . isArray ( stdio ) ) {
890
- throw new ERR_INVALID_OPT_VALUE ( 'stdio' , util . inspect ( stdio ) ) ;
890
+ throw new ERR_INVALID_OPT_VALUE ( 'stdio' , inspect ( stdio ) ) ;
891
891
}
892
892
893
893
// At least 3 stdio will be created
@@ -967,12 +967,12 @@ function _validateStdio(stdio, sync) {
967
967
} else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
968
968
if ( ! sync ) {
969
969
cleanup ( ) ;
970
- throw new ERR_INVALID_SYNC_FORK_INPUT ( util . inspect ( stdio ) ) ;
970
+ throw new ERR_INVALID_SYNC_FORK_INPUT ( inspect ( stdio ) ) ;
971
971
}
972
972
} else {
973
973
// Cleanup
974
974
cleanup ( ) ;
975
- throw new ERR_INVALID_OPT_VALUE ( 'stdio' , util . inspect ( stdio ) ) ;
975
+ throw new ERR_INVALID_OPT_VALUE ( 'stdio' , inspect ( stdio ) ) ;
976
976
}
977
977
978
978
return acc ;
0 commit comments