We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b022d commit 88e1418Copy full SHA for 88e1418
tests/unit/testsuite.js
@@ -48,6 +48,11 @@ function testJshint( widget ) {
48
).done(function( hintArgs, srcArgs ) {
49
var passed = JSHINT( srcArgs[ 0 ], hintArgs[ 0 ] ),
50
errors = $.map( JSHINT.errors, function( error ) {
51
+ // JSHINT may report null if there are too many errors
52
+ if ( !error ) {
53
+ return;
54
+ }
55
+
56
return "[L" + error.line + ":C" + error.character + "] " +
57
error.reason + "\n" + error.evidence + "\n";
58
}).join( "\n" );
0 commit comments