@@ -397,7 +397,7 @@ const _deprecatedCustomFds = deprecate(
397
397
return fd === - 1 ? 'pipe' : fd ;
398
398
} ) ;
399
399
} , 'child_process: options.customFds option is deprecated. ' +
400
- 'Use options.stdio instead.' , 'DEP0006' ) ;
400
+ 'Use options.stdio instead.' , 'DEP0006' ) ;
401
401
402
402
function _convertCustomFds ( options ) {
403
403
if ( options . customFds && ! options . stdio ) {
@@ -414,7 +414,7 @@ function normalizeSpawnArguments(file, args, options) {
414
414
if ( Array . isArray ( args ) ) {
415
415
args = args . slice ( 0 ) ;
416
416
} else if ( args !== undefined &&
417
- ( args === null || typeof args !== 'object' ) ) {
417
+ ( args === null || typeof args !== 'object' ) ) {
418
418
throw new ERR_INVALID_ARG_TYPE ( 'args' , 'object' , args ) ;
419
419
} else {
420
420
options = args ;
@@ -428,13 +428,13 @@ function normalizeSpawnArguments(file, args, options) {
428
428
429
429
// Validate the cwd, if present.
430
430
if ( options . cwd != null &&
431
- typeof options . cwd !== 'string' ) {
431
+ typeof options . cwd !== 'string' ) {
432
432
throw new ERR_INVALID_ARG_TYPE ( 'options.cwd' , 'string' , options . cwd ) ;
433
433
}
434
434
435
435
// Validate detached, if present.
436
436
if ( options . detached != null &&
437
- typeof options . detached !== 'boolean' ) {
437
+ typeof options . detached !== 'boolean' ) {
438
438
throw new ERR_INVALID_ARG_TYPE ( 'options.detached' ,
439
439
'boolean' , options . detached ) ;
440
440
}
@@ -451,28 +451,28 @@ function normalizeSpawnArguments(file, args, options) {
451
451
452
452
// Validate the shell, if present.
453
453
if ( options . shell != null &&
454
- typeof options . shell !== 'boolean' &&
455
- typeof options . shell !== 'string' ) {
454
+ typeof options . shell !== 'boolean' &&
455
+ typeof options . shell !== 'string' ) {
456
456
throw new ERR_INVALID_ARG_TYPE ( 'options.shell' ,
457
457
[ 'boolean' , 'string' ] , options . shell ) ;
458
458
}
459
459
460
460
// Validate argv0, if present.
461
461
if ( options . argv0 != null &&
462
- typeof options . argv0 !== 'string' ) {
462
+ typeof options . argv0 !== 'string' ) {
463
463
throw new ERR_INVALID_ARG_TYPE ( 'options.argv0' , 'string' , options . argv0 ) ;
464
464
}
465
465
466
466
// Validate windowsHide, if present.
467
467
if ( options . windowsHide != null &&
468
- typeof options . windowsHide !== 'boolean' ) {
468
+ typeof options . windowsHide !== 'boolean' ) {
469
469
throw new ERR_INVALID_ARG_TYPE ( 'options.windowsHide' ,
470
470
'boolean' , options . windowsHide ) ;
471
471
}
472
472
473
473
// Validate windowsVerbatimArguments, if present.
474
474
if ( options . windowsVerbatimArguments != null &&
475
- typeof options . windowsVerbatimArguments !== 'boolean' ) {
475
+ typeof options . windowsVerbatimArguments !== 'boolean' ) {
476
476
throw new ERR_INVALID_ARG_TYPE ( 'options.windowsVerbatimArguments' ,
477
477
'boolean' ,
478
478
options . windowsVerbatimArguments ) ;
0 commit comments