{"action":"opened","issue":{"url":"https://api.github.com/repos/rmurphey/js-assessment/issues/144","labels_url":"https://api.github.com/repos/rmurphey/js-assessment/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/rmurphey/js-assessment/issues/144/comments","events_url":"https://api.github.com/repos/rmurphey/js-assessment/issues/144/events","html_url":"https://github.com/rmurphey/js-assessment/issues/144","id":113226708,"number":144,"title":"Best practices: declare functions safely passes by default on Firefox","user":{"login":"vixus0","id":2650888,"avatar_url":"https://avatars.githubusercontent.com/u/2650888?v=3","gravatar_id":"","url":"https://api.github.com/users/vixus0","html_url":"https://github.com/vixus0","followers_url":"https://api.github.com/users/vixus0/followers","following_url":"https://api.github.com/users/vixus0/following{/other_user}","gists_url":"https://api.github.com/users/vixus0/gists{/gist_id}","starred_url":"https://api.github.com/users/vixus0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vixus0/subscriptions","organizations_url":"https://api.github.com/users/vixus0/orgs","repos_url":"https://api.github.com/users/vixus0/repos","events_url":"https://api.github.com/users/vixus0/events{/privacy}","received_events_url":"https://api.github.com/users/vixus0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-25T13:51:57Z","updated_at":"2015-10-25T13:51:57Z","closed_at":null,"body":"Browser: Firefox 41.0.2\r\n\r\nThe current default implementation of `exports.bestPracticesAnswers.functions` passes without any modifications when I expect it to fail. This is because Fx doesn't hoist function declarations within blocks, which I believe is technically correct according to the ECMA specs (only statements within blocks) but contrary to most other browsers. Not sure how to fix this really.\r\n\r\nMore info here:\r\n\r\n* http://statichtml.com/2011/spidermonkey-function-hoisting.html\r\n* http://stackoverflow.com/questions/27281445/javascript-function-hoisting-inside-of-if-statements"}}