@@ -18,7 +18,7 @@ const { validateString } = require('internal/validators');
1818const EventEmitter = require ( 'events' ) ;
1919const net = require ( 'net' ) ;
2020const dgram = require ( 'dgram' ) ;
21- const util = require ( 'util' ) ;
21+ const inspect = require ( 'internal/ util/inspect' ) . inspect ;
2222const assert = require ( 'internal/assert' ) ;
2323
2424const { Process } = internalBinding ( 'process_wrap' ) ;
@@ -887,7 +887,7 @@ function _validateStdio(stdio, sync) {
887887 throw new ERR_INVALID_OPT_VALUE ( 'stdio' , stdio ) ;
888888 }
889889 } 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 ) ) ;
891891 }
892892
893893 // At least 3 stdio will be created
@@ -967,12 +967,12 @@ function _validateStdio(stdio, sync) {
967967 } else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
968968 if ( ! sync ) {
969969 cleanup ( ) ;
970- throw new ERR_INVALID_SYNC_FORK_INPUT ( util . inspect ( stdio ) ) ;
970+ throw new ERR_INVALID_SYNC_FORK_INPUT ( inspect ( stdio ) ) ;
971971 }
972972 } else {
973973 // Cleanup
974974 cleanup ( ) ;
975- throw new ERR_INVALID_OPT_VALUE ( 'stdio' , util . inspect ( stdio ) ) ;
975+ throw new ERR_INVALID_OPT_VALUE ( 'stdio' , inspect ( stdio ) ) ;
976976 }
977977
978978 return acc ;
0 commit comments