summaryrefslogtreecommitdiff
path: root/benchmark/module/module-loader.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-11-04 12:38:54 -0500
committercjihrig <cjihrig@gmail.com>2018-11-06 10:59:23 -0500
commit5407690bd79a4aa9b5ea72acb98d1a8efd309029 (patch)
tree631bfbf731bdb4fa66338e40a52ecd0579b9d61d /benchmark/module/module-loader.js
parenta74b4a062fd6cf8ba5fb0a17078f855b072841cd (diff)
downloadandroid-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.tar.gz
android-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.tar.bz2
android-node-v8-5407690bd79a4aa9b5ea72acb98d1a8efd309029.zip
benchmark: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'benchmark/module/module-loader.js')
-rw-r--r--benchmark/module/module-loader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/module/module-loader.js b/benchmark/module/module-loader.js
index c79e1a73d4..e780d6376b 100644
--- a/benchmark/module/module-loader.js
+++ b/benchmark/module/module-loader.js
@@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
function main({ n, fullPath, useCache }) {
tmpdir.refresh();
- try { fs.mkdirSync(benchmarkDirectory); } catch (e) {}
+ try { fs.mkdirSync(benchmarkDirectory); } catch {}
for (var i = 0; i <= n; i++) {
fs.mkdirSync(`${benchmarkDirectory}${i}`);
fs.writeFileSync(