child_process: improve spawn() argument handling
authorcjihrig <cjihrig@gmail.com>
Sat, 20 Sep 2014 04:07:33 +0000 (00:07 -0400)
committerTrevor Norris <trev.norris@gmail.com>
Thu, 25 Sep 2014 22:13:14 +0000 (15:13 -0700)
commit9d957747222da95e7c55142d25f59466c07857dc
treecc108c2bc977458959e9979d6806a823db051583
parentf3473d7db696f78b284c7a874ba33ec5e2b91309
child_process: improve spawn() argument handling

Add stricter argument type checking to normalizeSpawnArguments().

Removes a number of extraneous checks in spawn().

Fix regression in handling of the optional args argument.

Add more thorough testing of spawn() arguments.

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
lib/child_process.js
test/simple/test-child-process-spawn-typeerror.js