summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-silent.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 13:19:00 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 11:43:52 +0000
commit7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f (patch)
treea971102d320e17e6cb3d00c48fe708b2b86c8136 /test/parallel/test-child-process-silent.js
parent1ef401ce92d6195878b9d041cc969612628f5852 (diff)
downloadnode-new-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.tar.gz
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically. PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-child-process-silent.js')
-rw-r--r--test/parallel/test-child-process-silent.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-child-process-silent.js b/test/parallel/test-child-process-silent.js
index e087ae1cde..3bfa9f5f7d 100644
--- a/test/parallel/test-child-process-silent.js
+++ b/test/parallel/test-child-process-silent.js
@@ -32,15 +32,15 @@ if (process.argv[2] === 'pipe') {
// testcase | start parent && child IPC test
// testing: is stderr and stdout piped to parent
- var args = [process.argv[1], 'parent'];
- var parent = childProcess.spawn(process.execPath, args);
+ const args = [process.argv[1], 'parent'];
+ const parent = childProcess.spawn(process.execPath, args);
//got any stderr or std data
- var stdoutData = false;
+ let stdoutData = false;
parent.stdout.on('data', function() {
stdoutData = true;
});
- var stderrData = false;
+ let stderrData = false;
parent.stdout.on('data', function() {
stderrData = true;
});
@@ -52,8 +52,8 @@ if (process.argv[2] === 'pipe') {
child.stderr.pipe(process.stderr, {end: false});
child.stdout.pipe(process.stdout, {end: false});
- var childSending = false;
- var childReciveing = false;
+ let childSending = false;
+ let childReciveing = false;
child.on('message', function(message) {
if (childSending === false) {
childSending = (message === 'message from child');