"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,
- "'e' is already defined.": true
+ "'e' is already defined.": true,
+ "Don't make functions within a loop.": true
};
function check(src)
print( " Problem at line " + w.line + " character " + w.character + ": " + w.reason );
}
}
-
+
if ( found > 0 ) {
print( "\n" + found + " Error(s) found." );
} else {