{"issue":{"state":"open","created_at":"2011-11-29T03:03:26Z","updated_at":"2011-11-29T04:31:38Z","user":{"gravatar_id":"52c6174ba60557536f93809b4e95d97c","id":604030,"url":"https://api.github.com/users/angus-c","avatar_url":"https://secure.gravatar.com/avatar/52c6174ba60557536f93809b4e95d97c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"angus-c"},"comments":1,"body":"These two are both valid code and I have latedef option set to false. \r\n(using node-jshint)\r\n\r\n1)\r\n\r\n```JavaScript\r\n/*jshint latedef:false*/\r\n/*globals console:true*/\r\n\r\n(function() {\r\n  console.log(hello);\r\n  function hello() {}\r\n})();\r\n```\r\n\r\ntest.js:5:15 'hello' is not defined.\r\n  console.log(hello);\r\n\r\nUnused variables:\r\ntest.js:4 var 'hello' in function \"anonymous\"\r\n\r\nImplied globals:\r\ntest.js:5 'hello'\r\n\r\n2)\r\n\r\n```JavaScript\r\n/*jshint latedef:false*/\r\n\r\n(function() {\r\n  hello();\r\n  function hello() {}\r\n})();\r\n````\r\n\r\ntest.js:4:3 'hello' is not defined.\r\n  hello();\r\n\r\nUnused variables:\r\ntest.js:3 var 'hello' in function \"anonymous\"\r\n\r\nImplied globals:\r\ntest.js:4 'hello'\r\n\r\n","assignee":null,"id":2376571,"number":367,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"function hoisting not detected inside a closure","closed_at":null,"html_url":"https://github.com/jshint/jshint/issues/367","url":"https://api.github.com/repos/jshint/jshint/issues/367","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T04:31:38Z","updated_at":"2011-11-29T04:31:38Z","user":{"gravatar_id":"4625cc3a305e2a7c2ccb902b5da5de04","id":84763,"url":"https://api.github.com/users/neonstalwart","avatar_url":"https://secure.gravatar.com/avatar/4625cc3a305e2a7c2ccb902b5da5de04?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"neonstalwart"},"body":"this sounds like that same problem that was fixed (i think yesterday).  see ce7626a and #133, #353, #349, #347","id":2912363,"url":"https://api.github.com/repos/jshint/jshint/issues/comments/2912363"}}