We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68862c4 commit fce9b3aCopy full SHA for fce9b3a
1 file changed
lib/child_process.js
@@ -189,9 +189,6 @@ function _forkChild(fd, serializationMode) {
189
}
190
191
function normalizeExecArgs(command, options, callback) {
192
- validateString(command, 'command');
193
- validateArgumentNullCheck(command, 'command');
194
-
195
if (typeof options === 'function') {
196
callback = options;
197
options = undefined;
@@ -568,9 +565,9 @@ let emittedDEP0190Already = false;
568
565
function normalizeSpawnArguments(file, args, options) {
569
566
validateString(file, 'file');
570
567
validateArgumentNullCheck(file, 'file');
571
572
- if (file.length === 0)
+ if (file.length === 0) {
573
throw new ERR_INVALID_ARG_VALUE('file', file, 'cannot be empty');
+ }
574
575
if (ArrayIsArray(args)) {
576
args = ArrayPrototypeSlice(args);
0 commit comments