diff options
author | cjihrig <cjihrig@gmail.com> | 2016-12-30 18:38:06 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-01-02 18:28:18 -0500 |
commit | ff1efa60878d8353e1b8e36684a786bdf57963fb (patch) | |
tree | 31399a1732ff2b91374fdcaaf2d5d0976b6a00a7 /test/parallel/test-cluster-rr-domain-listen.js | |
parent | 1605a2e02ae6887e57292543489c76eef5c545d0 (diff) | |
download | android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.tar.gz android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.tar.bz2 android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.zip |
test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-cluster-rr-domain-listen.js')
-rw-r--r-- | test/parallel/test-cluster-rr-domain-listen.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-cluster-rr-domain-listen.js b/test/parallel/test-cluster-rr-domain-listen.js index 1328483abb..0f39c47ed2 100644 --- a/test/parallel/test-cluster-rr-domain-listen.js +++ b/test/parallel/test-cluster-rr-domain-listen.js @@ -1,7 +1,7 @@ 'use strict'; -var common = require('../common'); -var cluster = require('cluster'); -var domain = require('domain'); +const common = require('../common'); +const cluster = require('cluster'); +const domain = require('domain'); // RR is the default for v0.11.9+ so the following line is redundant: // cluster.schedulingPolicy = cluster.SCHED_RR; @@ -10,7 +10,7 @@ if (cluster.isWorker) { var d = domain.create(); d.run(function() { }); - var http = require('http'); + const http = require('http'); http.Server(function() { }).listen(common.PORT, '127.0.0.1'); } else if (cluster.isMaster) { |