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-domain-with-abort-on-uncaught-exception.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-domain-with-abort-on-uncaught-exception.js')
-rw-r--r-- | test/parallel/test-domain-with-abort-on-uncaught-exception.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-domain-with-abort-on-uncaught-exception.js b/test/parallel/test-domain-with-abort-on-uncaught-exception.js index 6fb3912e5b..e11935be68 100644 --- a/test/parallel/test-domain-with-abort-on-uncaught-exception.js +++ b/test/parallel/test-domain-with-abort-on-uncaught-exception.js @@ -29,7 +29,7 @@ const fs = require('fs'); const domainErrHandlerExMessage = 'exception from domain error handler'; if (process.argv[2] === 'child') { - var domain = require('domain'); + const domain = require('domain'); var d = domain.create(); process.on('uncaughtException', function onUncaughtException() { @@ -80,7 +80,7 @@ if (process.argv[2] === 'child') { throw new Error('Error from domain.run callback'); }); } else { - var exec = require('child_process').exec; + const exec = require('child_process').exec; function testDomainExceptionHandling(cmdLineOption, options) { if (typeof cmdLineOption === 'object') { |