jscritic
jscritic copied to clipboard
`undefined` incorrectly labeled as unused.
Here is a small repro:
(function() {
var undefined;
function foo() {
return arguments[0] || undefined;
}
return foo;
}());
Looks like JSHint issue. Plugged this in jshint.com and it showed "undefined" as unused.
Filed as https://github.com/jshint/jshint/issues/1604