Handle the case where JSLint complains about arguments in try/catch already being defined (we use the name 'e' consistently for catch(e) - will work to standardize on that now).

This commit is contained in:
John Resig 2010-10-17 10:50:17 -04:00
parent 497fc9849e
commit 25828768d7

View file

@ -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;