Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-09-14 04:48:53 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2017-09-20 03:14:38 +0300
commite167ab71fb113fa38866dd11aa99af7079fb463c (patch)
tree3d91ca0f6e60d08fcab70833b851335e41b53cd0 /benchmark/http/chunked.js
parentb1c8f15c5f169e021f7c46eb7b219de95fe97603 (diff)
benchmark: var to const
PR-URL: https://github.com/nodejs/node/pull/13757 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'benchmark/http/chunked.js')
-rw-r--r--benchmark/http/chunked.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/http/chunked.js b/benchmark/http/chunked.js
index 34a06a1a6d8..1056f456ef8 100644
--- a/benchmark/http/chunked.js
+++ b/benchmark/http/chunked.js
@@ -8,9 +8,9 @@
// Verify that our assumptions are valid.
'use strict';
-var common = require('../common.js');
+const common = require('../common.js');
-var bench = common.createBenchmark(main, {
+const bench = common.createBenchmark(main, {
n: [1, 4, 8, 16],
len: [1, 64, 256],
c: [100]
@@ -18,9 +18,9 @@ var bench = common.createBenchmark(main, {
function main(conf) {
const http = require('http');
- var chunk = Buffer.alloc(conf.len, '8');
+ const chunk = Buffer.alloc(conf.len, '8');
- var server = http.createServer(function(req, res) {
+ const server = http.createServer(function(req, res) {
function send(left) {
if (left === 0) return res.end();
res.write(chunk);