diff options
-rw-r--r-- | .eslintrc.js | 1 | ||||
-rw-r--r-- | lib/vm.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 6311c7bb5b..7333382fe3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -234,6 +234,7 @@ module.exports = { variables: false, }], 'no-useless-call': 'error', + 'no-useless-catch': 'error', 'no-useless-concat': 'error', 'no-useless-constructor': 'error', 'no-useless-escape': 'error', @@ -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, |