summaryrefslogtreecommitdiff
path: root/test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-02-02 22:35:32 -0800
committerNode.js GitHub Bot <github-bot@iojs.org>2022-02-05 12:58:32 +0000
commit5d559f4a748fa85f67f50b23916a9ef6cf9260a1 (patch)
tree1d156014abfe5d6da640ea3fe6ef38a0eb32f83f /test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
parent73a75c2ee63ea65709f63b71ade3b81a02b519fc (diff)
downloadnode-new-5d559f4a748fa85f67f50b23916a9ef6cf9260a1.tar.gz
test: enable no-empty ESLint rule
PR-URL: https://github.com/nodejs/node/pull/41831 Refs: https://eslint.org/docs/rules/no-empty Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js')
-rw-r--r--test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js b/test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
index 78e38c1e93..e38cefd20e 100644
--- a/test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
+++ b/test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
@@ -5,5 +5,7 @@ const { AsyncResource } = require('async_hooks');
try {
new AsyncResource('foo').runInAsyncScope(() => { throw new Error('bar'); });
-} catch {}
+} catch {
+ // Continue regardless of error.
+}
// Should abort (fail the case) if async id is not matching.