child_process: check execFile and fork args
authorJames M Snell <jasnell@gmail.com>
Wed, 2 Sep 2015 21:16:24 +0000 (14:16 -0700)
committerRod Vagg <rod@vagg.org>
Sun, 6 Sep 2015 11:39:00 +0000 (21:39 +1000)
commit609db5a1ddcd93ecbdc99bdc8bb32e79532071dd
treeeb44eb87115339aa2fc5f3433572c0bdb179e21d
parentfe4b309fd378d2b56a38a3879835ff43cd85fa8f
child_process: check execFile and fork args

Port of joyent/node commits:

 * https://github.com/nodejs/node-v0.x-archive/commit/e17c5a72b23f920f291d61f2780068c18768cb92
 * https://github.com/nodejs/node-v0.x-archive/commit/70dafa7b624abd43432e03304d65cc527fbecc11

Pull over test-child-process-spawn-typeerror.js from v0.12, replacing
the existing test in master. The new test includes a broader set of
tests on the various arg choices and throws.

Reviewed-By: trevnorris - Trevor Norris <trevnorris@nodejs.org>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: thefourtheye - Sakthipriyan Vairamani
PR-URL: https://github.com/nodejs/node/pull/2667
Fixes: https://github.com/nodejs/node/issues/2515
lib/child_process.js
test/parallel/test-child-process-spawn-typeerror.js