summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-multi.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 13:19:00 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 11:43:52 +0000
commit7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f (patch)
treea971102d320e17e6cb3d00c48fe708b2b86c8136 /test/parallel/test-domain-multi.js
parent1ef401ce92d6195878b9d041cc969612628f5852 (diff)
downloadandroid-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.tar.gz
android-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.tar.bz2
android-node-v8-7a0e462f9facfff8ccd7b37eb5b65db1c2b2f55f.zip
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>
Diffstat (limited to 'test/parallel/test-domain-multi.js')
-rw-r--r--test/parallel/test-domain-multi.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-domain-multi.js b/test/parallel/test-domain-multi.js
index 2e541ab5e4..b800572621 100644
--- a/test/parallel/test-domain-multi.js
+++ b/test/parallel/test-domain-multi.js
@@ -5,12 +5,12 @@ require('../common');
const assert = require('assert');
const domain = require('domain');
-var caughtA = false;
-var caughtB = false;
-var caughtC = false;
+let caughtA = false;
+let caughtB = false;
+let caughtC = false;
-var a = domain.create();
+const a = domain.create();
a.enter(); // this will be our "root" domain
a.on('error', function(er) {
caughtA = true;
@@ -20,9 +20,9 @@ a.on('error', function(er) {
const http = require('http');
-var server = http.createServer(function(req, res) {
+const server = http.createServer(function(req, res) {
// child domain of a.
- var b = domain.create();
+ const b = domain.create();
a.add(b);
// treat these EE objects as if they are a part of the b domain
@@ -50,8 +50,8 @@ var server = http.createServer(function(req, res) {
}));
}).listen(0, function() {
- var c = domain.create();
- var req = http.get({ host: 'localhost', port: this.address().port });
+ const c = domain.create();
+ const req = http.get({ host: 'localhost', port: this.address().port });
// add the request to the C domain
c.add(req);