- Version: master (10.0.0)
- Platform: Windows 7 x64
- Subsystem: child_process
All these function calls produce a bit confusing error message:
child_process.execFile('');
child_process.exec('');
child_process.spawn('');
child_process.execFileSync('');
child_process.execSync('');
child_process.spawnSync('');
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type string
at normalizeSpawnArguments (child_process.js:389:11)
...
Compare with previous versions:
v4–v6: TypeError: Bad argument
v8–v9: TypeError: "file" argument must be a non-empty string
See
|
if (typeof file !== 'string' || file.length === 0) |
|
throw new ERR_INVALID_ARG_TYPE('file', 'string', file); |
All these function calls produce a bit confusing error message:
Compare with previous versions:
v4–v6:
TypeError: Bad argumentv8–v9:
TypeError: "file" argument must be a non-empty stringSee
node/lib/child_process.js
Lines 388 to 389 in 74ff743