diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-26 07:21:27 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-03-30 15:16:39 +0300 |
commit | f86f5736da72ad4f3fb50692461222590e2f0258 (patch) | |
tree | 6fee263bfca24abbf76b7a3f1517b8184c29f077 /benchmark/http/_chunky_http_client.js | |
parent | f0b3855a90bc5f68fe38ea5e7c69d30ae7d81a27 (diff) |
benchmark,lib: change var to const
Refs: https://github.com/nodejs/node/pull/26679
PR-URL: https://github.com/nodejs/node/pull/26915
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'benchmark/http/_chunky_http_client.js')
-rw-r--r-- | benchmark/http/_chunky_http_client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http/_chunky_http_client.js b/benchmark/http/_chunky_http_client.js index 21418a7c26b..5164f8c6199 100644 --- a/benchmark/http/_chunky_http_client.js +++ b/benchmark/http/_chunky_http_client.js @@ -54,7 +54,7 @@ function main({ len, n }) { const add = 11; var count = 0; const PIPE = process.env.PIPE_NAME; - var socket = net.connect(PIPE, () => { + const socket = net.connect(PIPE, () => { bench.start(); WriteHTTPHeaders(socket, 1, len); socket.setEncoding('utf8'); |