File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const EventEmitter = require('events');
1919const net = require ( 'net' ) ;
2020const dgram = require ( 'dgram' ) ;
2121const util = require ( 'util' ) ;
22+ const inspect = require ( 'internal/util/inspect' ) . inspect ;
2223const assert = require ( 'internal/assert' ) ;
2324
2425const { Process } = internalBinding ( 'process_wrap' ) ;
@@ -887,7 +888,7 @@ function _validateStdio(stdio, sync) {
887888 throw new ERR_INVALID_OPT_VALUE ( 'stdio' , stdio ) ;
888889 }
889890 } else if ( ! Array . isArray ( stdio ) ) {
890- throw new ERR_INVALID_OPT_VALUE ( 'stdio' , util . inspect ( stdio ) ) ;
891+ throw new ERR_INVALID_OPT_VALUE ( 'stdio' , inspect ( stdio ) ) ;
891892 }
892893
893894 // At least 3 stdio will be created
@@ -967,12 +968,12 @@ function _validateStdio(stdio, sync) {
967968 } else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
968969 if ( ! sync ) {
969970 cleanup ( ) ;
970- throw new ERR_INVALID_SYNC_FORK_INPUT ( util . inspect ( stdio ) ) ;
971+ throw new ERR_INVALID_SYNC_FORK_INPUT ( inspect ( stdio ) ) ;
971972 }
972973 } else {
973974 // Cleanup
974975 cleanup ( ) ;
975- throw new ERR_INVALID_OPT_VALUE ( 'stdio' , util . inspect ( stdio ) ) ;
976+ throw new ERR_INVALID_OPT_VALUE ( 'stdio' , inspect ( stdio ) ) ;
976977 }
977978
978979 return acc ;
You can’t perform that action at this time.
0 commit comments