summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-top-level-error-handler-throw.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-12-30 18:38:06 -0500
committercjihrig <cjihrig@gmail.com>2017-01-02 18:28:18 -0500
commitff1efa60878d8353e1b8e36684a786bdf57963fb (patch)
tree31399a1732ff2b91374fdcaaf2d5d0976b6a00a7 /test/parallel/test-domain-top-level-error-handler-throw.js
parent1605a2e02ae6887e57292543489c76eef5c545d0 (diff)
downloadandroid-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-domain-top-level-error-handler-throw.js')
-rw-r--r--test/parallel/test-domain-top-level-error-handler-throw.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-domain-top-level-error-handler-throw.js b/test/parallel/test-domain-top-level-error-handler-throw.js
index b65b940123..8062d10736 100644
--- a/test/parallel/test-domain-top-level-error-handler-throw.js
+++ b/test/parallel/test-domain-top-level-error-handler-throw.js
@@ -13,7 +13,7 @@ const domainErrHandlerExMessage = 'exception from domain error handler';
const internalExMessage = 'You should NOT see me';
if (process.argv[2] === 'child') {
- var domain = require('domain');
+ const domain = require('domain');
var d = domain.create();
d.on('error', function() {
@@ -26,8 +26,8 @@ if (process.argv[2] === 'child') {
});
});
} else {
- var fork = require('child_process').fork;
- var assert = require('assert');
+ const fork = require('child_process').fork;
+ const assert = require('assert');
var child = fork(process.argv[1], ['child'], {silent: true});
var stderrOutput = '';