diff options
-rw-r--r-- | lib/scope.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index 1ce17fa6..6f29921f 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -532,6 +532,7 @@ AST_Toplevel.DEFMETHOD("scope_warnings", function(options){ } if (options.unreferenced && (node instanceof AST_SymbolDeclaration || node instanceof AST_Label) + && !(node instanceof AST_SymbolCatch) && node.unreferenced()) { AST_Node.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]", { type: node instanceof AST_Label ? "Label" : "Symbol", |