child_process: do not set args before throwing
authorGreg Sabia Tucker <greg@narrowlabs.com>
Wed, 14 May 2014 05:32:57 +0000 (22:32 -0700)
committerFedor Indutny <fedor@indutny.com>
Thu, 15 May 2014 21:31:59 +0000 (01:31 +0400)
commit7bd08c5062bdcd2a71ddd9d79bd3e080f1e48090
treece4b8926dc4967080078f02ff8a5e1caebbeb3e0
parent885142a5edc2c803fa8b9d92b5d0771379237764
child_process: do not set args before throwing

No point in setting args and options if TypeError
is being thrown.

fix #7456

Signed-off-by: Fedor Indutny <fedor@indutny.com>
lib/child_process.js