summaryrefslogtreecommitdiff
path: root/benchmark/child_process/child-process-exec-stdout.js
diff options
context:
space:
mode:
authordnlup <dwon.dnl@gmail.com>2019-12-20 17:01:49 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-12-25 11:42:58 +0100
commit3885e157fa67715de65f4093bffdc552770cc502 (patch)
treed302e8982425a58968f441fbb106eb5e86df17cb /benchmark/child_process/child-process-exec-stdout.js
parent1bc7a50fdd203de2e1c3842f98525d7cd97a3cdd (diff)
downloadnode-new-3885e157fa67715de65f4093bffdc552770cc502.tar.gz
benchmark: use let instead of var in child_process
PR-URL: https://github.com/nodejs/node/pull/31043 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'benchmark/child_process/child-process-exec-stdout.js')
-rw-r--r--benchmark/child_process/child-process-exec-stdout.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/child_process/child-process-exec-stdout.js b/benchmark/child_process/child-process-exec-stdout.js
index a1dc4aa04c..f750e2cf3e 100644
--- a/benchmark/child_process/child-process-exec-stdout.js
+++ b/benchmark/child_process/child-process-exec-stdout.js
@@ -19,7 +19,7 @@ function childProcessExecStdout({ dur, len }) {
const cmd = `yes "${'.'.repeat(len)}"`;
const child = exec(cmd, { 'stdio': ['ignore', 'pipe', 'ignore'] });
- var bytes = 0;
+ let bytes = 0;
child.stdout.on('data', (msg) => {
bytes += msg.length;
});