summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-stdio-big-write-end.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-01-28 23:02:57 -0800
committerRich Trott <rtrott@gmail.com>2016-01-31 18:06:26 -0800
commit185f8497e5b7138f2ede5d76e3a25933137cef69 (patch)
treef4d3b6832da0e67394ee00e6e80dc608a3ed2c3a /test/parallel/test-child-process-stdio-big-write-end.js
parent1800bf4142e77899df30fd7c673c26e7f7c5dcd1 (diff)
downloadandroid-node-v8-185f8497e5b7138f2ede5d76e3a25933137cef69.tar.gz
android-node-v8-185f8497e5b7138f2ede5d76e3a25933137cef69.tar.bz2
android-node-v8-185f8497e5b7138f2ede5d76e3a25933137cef69.zip
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>
Diffstat (limited to 'test/parallel/test-child-process-stdio-big-write-end.js')
-rw-r--r--test/parallel/test-child-process-stdio-big-write-end.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-stdio-big-write-end.js b/test/parallel/test-child-process-stdio-big-write-end.js
index bc414938b5..6a55c2b658 100644
--- a/test/parallel/test-child-process-stdio-big-write-end.js
+++ b/test/parallel/test-child-process-stdio-big-write-end.js
@@ -36,7 +36,7 @@ function parent() {
// then write a bunch more times.
for (var i = 0; i < 100; i++) {
- var buf = new Buffer(BUFSIZE);
+ const buf = new Buffer(BUFSIZE);
buf.fill('.');
sent += BUFSIZE;
child.stdin.write(buf);