test: scope redeclared vars in test-child-process*
authorRich Trott <rtrott@gmail.com>
Fri, 29 Jan 2016 07:02:57 +0000 (23:02 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit5f25eabd8f7b55f78a5aadfc2d4373f57d6d090e
treebad7b9d12f9293f39df573869f163df857f4f2ae
parenta53cbf5b91381ca390f1802815383a6c8f2ed449
test: scope redeclared vars in test-child-process*

A handful of child process tests had variables declared multiple times
in the same scope using `var`. This change scopes those declarations.

PR-URL: https://github.com/nodejs/node/pull/4944
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
test/parallel/test-child-process-default-options.js
test/parallel/test-child-process-env.js
test/parallel/test-child-process-fork-dgram.js
test/parallel/test-child-process-silent.js
test/parallel/test-child-process-stdio-big-write-end.js
test/parallel/test-child-process-validate-stdio.js