mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
e6b6ce429c
commit
a6bd287724
732 files changed
+3390
-3371
No files matched your search
@@ -11,28 +11,28 @@ const https = require('https');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
var options = {
|
||||
const options = {
|
||||
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
|
||||
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
|
||||
};
|
||||
|
||||
var bufSize = 1024 * 1024;
|
||||
var sent = 0;
|
||||
var received = 0;
|
||||
const bufSize = 1024 * 1024;
|
||||
let sent = 0;
|
||||
let received = 0;
|
||||
|
||||
var server = https.createServer(options, function(req, res) {
|
||||
const server = https.createServer(options, function(req, res) {
|
||||
res.writeHead(200);
|
||||
req.pipe(res);
|
||||
});
|
||||
|
||||
server.listen(0, function() {
|
||||
var resumed = false;
|
||||
var req = https.request({
|
||||
let resumed = false;
|
||||
const req = https.request({
|
||||
method: 'POST',
|
||||
port: this.address().port,
|
||||
rejectUnauthorized: false
|
||||
}, function(res) {
|
||||
var timer;
|
||||
let timer;
|
||||
res.pause();
|
||||
console.error('paused');
|
||||
send();
|
||||
|
||||
Reference in new issue
Block a user