{"action":"closed","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2258","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2258/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2258/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2258/events","html_url":"https://github.com/jshint/jshint/issues/2258","id":61694085,"number":2258,"title":"let top with browser:true reported as unused","user":{"login":"MayhemYDG","id":567105,"avatar_url":"https://avatars.githubusercontent.com/u/567105?v=3","gravatar_id":"","url":"https://api.github.com/users/MayhemYDG","html_url":"https://github.com/MayhemYDG","followers_url":"https://api.github.com/users/MayhemYDG/followers","following_url":"https://api.github.com/users/MayhemYDG/following{/other_user}","gists_url":"https://api.github.com/users/MayhemYDG/gists{/gist_id}","starred_url":"https://api.github.com/users/MayhemYDG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayhemYDG/subscriptions","organizations_url":"https://api.github.com/users/MayhemYDG/orgs","repos_url":"https://api.github.com/users/MayhemYDG/repos","events_url":"https://api.github.com/users/MayhemYDG/events{/privacy}","received_events_url":"https://api.github.com/users/MayhemYDG/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-14T20:50:31Z","updated_at":"2015-05-15T18:26:57Z","closed_at":"2015-05-15T18:26:57Z","body":"On `jshint v2.6.3`.\r\n\r\n```js\r\n/* jshint esnext: true, browser: true, unused: true */\r\n(function() {\r\n  let top;\r\n  if (true) {\r\n    top++;\r\n  }\r\n})();\r\n```\r\n\r\n`test.js: line 3, col 10, 'top' is defined but never used.`\r\n\r\nCan't reproduce this error when I use `const` or `var` instead, or if `top` is used in the same block level."}}