summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-exit-dispose.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-domain-exit-dispose.js')
-rw-r--r--test/parallel/test-domain-exit-dispose.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-domain-exit-dispose.js b/test/parallel/test-domain-exit-dispose.js
index c53b840bf5..e1797cb660 100644
--- a/test/parallel/test-domain-exit-dispose.js
+++ b/test/parallel/test-domain-exit-dispose.js
@@ -5,7 +5,7 @@ const assert = require('assert');
const domain = require('domain');
// no matter what happens, we should increment a 10 times.
-var a = 0;
+let a = 0;
log();
function log() {
console.log(a++, process.domain);
@@ -15,7 +15,7 @@ function log() {
// in 50ms we'll throw an error.
setTimeout(err, 50);
function err() {
- var d = domain.create();
+ const d = domain.create();
d.on('error', handle);
d.run(err2);