jshint/jshint — Issue #347: latedef doesn't report in anonymous functions
Author: goatslacker
Created: 2011-11-20 00:14:49+00:00
State: open

Related to GH-133

/*jshint latedef: true, undef: true */
(function () {
foo();

function foo() { }
}());

I expect to receive the warning that I used foo before it was defined. Instead I only receive a warning that foo is not defined.