Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious warning for catch block parameter #142

Closed
natevw opened this issue Mar 1, 2013 · 2 comments
Closed

Spurious warning for catch block parameter #142

natevw opened this issue Mar 1, 2013 · 2 comments

Comments

@natevw
Copy link

natevw commented Mar 1, 2013

If I run uglify using --lint on code like this:

try {
    throw up;
} catch (e) {}

It complains WARN: Symbol e is declared but not referenced. But the catch statement must have a parameter — if I could leave it out, I would but that would result in a syntax error (e.g. your parser gives ERROR: Name expected).

@kawanet
Copy link

kawanet commented Dec 23, 2014

+1

In my case with jQuery: $("a").each(function(idx, elem) { ... });, I only need the second argument, however. It complains WARN: Symbol idx is declared but not referenced.

@avdg
Copy link
Contributor

avdg commented Feb 5, 2016

Hmm... can't reproduce on current master (b5a7197)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants