[Pkg-javascript-commits] [uglifyjs] 20/26: Don't warn for an unreferenced exception symbol in a catch block.
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.16
in repository uglifyjs.
commit 7be680d3f8fe0b17d01c8e4aea5a95dcb97b43c8
Author: Arnavion <arnavion at gmail.com>
Date: Fri Sep 12 21:01:19 2014 -0700
Don't warn for an unreferenced exception symbol in a catch block.
---
lib/scope.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/scope.js b/lib/scope.js
index 1ce17fa..6f29921 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",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list