{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/compat-table/issues/571","labels_url":"https://api.github.com/repos/kangax/compat-table/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/kangax/compat-table/issues/571/comments","events_url":"https://api.github.com/repos/kangax/compat-table/issues/571/events","html_url":"https://github.com/kangax/compat-table/issues/571","id":91630771,"number":571,"title":"Test `const ... in ...`","user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-28T19:39:23Z","updated_at":"2015-06-29T00:15:54Z","closed_at":null,"body":"ES6 supports the following construct:\r\n```js\r\nvar keys = [];\r\nfor (const i in {a: 2, b: 3}) {\r\n    setTimeout(function () {\r\n        keys.push(i);\r\n    });\r\n}\r\nconsole.assert(keys.indexOf('a') > -1);\r\nconsole.assert(keys.indexOf('b') > -1);\r\n```\r\nThis seems to be the only situation where `const` is allowed without explicit initializer so it might be worth checking it.\r\n\r\nChrome 43 passes the test, IE11 & Edge don't.\r\n\r\nP.S. A cleaner test would use `for-of` but that's yet another feature I didn't want to mix in."},"comment":{"url":"https://api.github.com/repos/kangax/compat-table/issues/comments/116362176","html_url":"https://github.com/kangax/compat-table/issues/571#issuecomment-116362176","issue_url":"https://api.github.com/repos/kangax/compat-table/issues/571","id":116362176,"user":{"login":"getify","id":150330,"avatar_url":"https://avatars.githubusercontent.com/u/150330?v=3","gravatar_id":"","url":"https://api.github.com/users/getify","html_url":"https://github.com/getify","followers_url":"https://api.github.com/users/getify/followers","following_url":"https://api.github.com/users/getify/following{/other_user}","gists_url":"https://api.github.com/users/getify/gists{/gist_id}","starred_url":"https://api.github.com/users/getify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getify/subscriptions","organizations_url":"https://api.github.com/users/getify/orgs","repos_url":"https://api.github.com/users/getify/repos","events_url":"https://api.github.com/users/getify/events{/privacy}","received_events_url":"https://api.github.com/users/getify/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T00:15:54Z","updated_at":"2015-06-29T00:15:54Z","body":"Note: this test (which is needed!) doesn't need `setTimeout(..)`, just like it doesn't need that in the `let` case. It's cleaner to show it synchronously."}}