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).

1.7/enhancement_8685
John Resig 2010-10-17 10:50:17 -04:00
parent 497fc9849e
commit 25828768d7
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ var ok = {
"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 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;