Skip to content

Commit 3b6283c

Browse files
JungMinurvagg
authored andcommitted
benchmark: add a constant declaration for net
Constant declaration for `net` is omitted in `idle_server.js` Add a constant declaration for constant `net` PR-URL: #3950 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 14f5bb7 commit 3b6283c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

benchmark/idle_server.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
net = require('net');
2-
connections = 0;
1+
'use strict';
32

3+
const net = require('net');
4+
var connections = 0;
45
var errors = 0;
56

6-
server = net.Server(function (socket) {
7+
var server = net.Server(function (socket) {
78

89
socket.on('error', function () {
9-
errors++;
10+
errors++;
1011
});
1112

1213
});
@@ -28,4 +29,3 @@ setInterval(function () {
2829
console.log("SERVER %d errors: %d", process.pid, errors);
2930
}
3031
}, 1000);
31-

0 commit comments

Comments
 (0)