summaryrefslogtreecommitdiff
path: root/lib/vm.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-12-26 21:05:21 -0500
committercjihrig <cjihrig@gmail.com>2018-12-29 13:36:57 -0500
commitbaf03962c1b63a25018d206dd0acc9f152452fd4 (patch)
treecfa261d8ebe444882e0e3f1268e73eb16df050c1 /lib/vm.js
parent1d3a414519a5b55eedb75ca938b54f8e6e4e79f5 (diff)
downloadandroid-node-v8-baf03962c1b63a25018d206dd0acc9f152452fd4.tar.gz
android-node-v8-baf03962c1b63a25018d206dd0acc9f152452fd4.tar.bz2
android-node-v8-baf03962c1b63a25018d206dd0acc9f152452fd4.zip
tools: enable no-useless-catch lint rule
This commit enables ESLint's no-useless-catch rule. PR-URL: https://github.com/nodejs/node/pull/25236 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/vm.js')
-rw-r--r--lib/vm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vm.js b/lib/vm.js
index 12c4efa1a2..464724071a 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -80,7 +80,7 @@ class Script extends ContextifyScript {
// Calling `ReThrow()` on a native TryCatch does not generate a new
// abort-on-uncaught-exception check. A dummy try/catch in JS land
// protects against that.
- try {
+ try { // eslint-disable-line no-useless-catch
super(code,
filename,
lineOffset,