Skip to content

Instantly share code, notes, and snippets.

@Kambfhase
Created October 22, 2012 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kambfhase/3933113 to your computer and use it in GitHub Desktop.
Save Kambfhase/3933113 to your computer and use it in GitHub Desktop.
JSHint Bug
Minimal testcase:
function(input){
return input;
}
Options:
/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, undef:true, unused:true, browser:true, devel:true, jquery:true, es5:true, indent:4, maxerr:50 */
Produced Errors:
Line 1: function(input){
Missing name in function declaration.
Line 1: function(input){
'undefined' is defined but never used.
The last one is rather weird. That functions name is undefined, not 'undefined'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment