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