diff --git a/.eslintrc.js b/.eslintrc.js index ab0baf1c85dfca..d13fb1709ba8e9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -222,6 +222,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', diff --git a/lib/vm.js b/lib/vm.js index 1456edf7eeddeb..3a614abe521423 100644 --- a/lib/vm.js +++ b/lib/vm.js @@ -79,7 +79,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,