Skip to content

Commit

Permalink
Handle the case where JSLint complains about arguments in try/catch a…
Browse files Browse the repository at this point in the history
…lready being defined (we use the name 'e' consistently for catch(e) - will work to standardize on that now).
  • Loading branch information
jeresig committed Oct 17, 2010
1 parent 497fc98 commit 2582876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/jslint-check.js
Expand Up @@ -12,8 +12,8 @@ var ok = {
"Use '===' to compare with 'null'.": true, "Use '===' to compare with 'null'.": true,
"Use '!==' to compare with 'null'.": true, "Use '!==' to compare with 'null'.": true,
"Expected an assignment or function call and instead saw an expression.": true, "Expected an assignment or function call and instead saw an expression.": true,
"Expected a 'break' statement before 'case'.": true "Expected a 'break' statement before 'case'.": true,

"'e' is already defined.": true
}; };


var e = JSLINT.errors, found = 0, w; var e = JSLINT.errors, found = 0, w;
Expand Down

0 comments on commit 2582876

Please sign in to comment.