joyent/node — pull request #8277 by chrisdickinson (2014-08-27 16:58:42+00:00)
Title: child_process: add type checking for "args" param

This commit ensures that the "args" parameter is either:

1. Undefined or null (defaulting "args" to []).
2. The callback parameter (defaulting "args" to []).
3. An array.

All other values will throw a TypeError.

Fixes #8249.