We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa0f90 commit 57b7e85Copy full SHA for 57b7e85
test/parallel/test-cluster-disconnect-unshared-udp.js
@@ -7,11 +7,11 @@ if (common.isWindows) {
7
return;
8
}
9
10
-var cluster = require('cluster');
11
-var dgram = require('dgram');
+const cluster = require('cluster');
+const dgram = require('dgram');
12
13
if (cluster.isMaster) {
14
- var unbound = cluster.fork().on('online', bind);
+ const unbound = cluster.fork().on('online', bind);
15
16
function bind() {
17
cluster.fork({BOUND: 'y'}).on('listening', disconnect);
@@ -23,7 +23,7 @@ if (cluster.isMaster) {
23
24
} else {
25
if (process.env.BOUND === 'y') {
26
- var source = dgram.createSocket('udp4');
+ const source = dgram.createSocket('udp4');
27
28
source.bind(0);
29
0 commit comments