{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3503","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3503/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3503/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3503/events","html_url":"https://github.com/eslint/eslint/issues/3503","id":102783610,"number":3503,"title":"eslint hits \"unexpected token\" error","user":{"login":"mo","id":7117,"avatar_url":"https://avatars.githubusercontent.com/u/7117?v=3","gravatar_id":"","url":"https://api.github.com/users/mo","html_url":"https://github.com/mo","followers_url":"https://api.github.com/users/mo/followers","following_url":"https://api.github.com/users/mo/following{/other_user}","gists_url":"https://api.github.com/users/mo/gists{/gist_id}","starred_url":"https://api.github.com/users/mo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo/subscriptions","organizations_url":"https://api.github.com/users/mo/orgs","repos_url":"https://api.github.com/users/mo/repos","events_url":"https://api.github.com/users/mo/events{/privacy}","received_events_url":"https://api.github.com/users/mo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-24T12:41:38Z","updated_at":"2015-08-24T14:49:55Z","closed_at":null,"body":"eslint hits \"unexpected token\" error for the code below and no particular rule is listed near the error (the code runs well in FF/Chrome):\r\n\r\nvar myMap = { \"hello\": \"world\" };\r\nfor (var x = null in myMap) {\r\n\talert(x);\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/134231723","html_url":"https://github.com/eslint/eslint/issues/3503#issuecomment-134231723","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3503","id":134231723,"user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T14:49:55Z","updated_at":"2015-08-24T14:49:55Z","body":"> Can't do assignments in for-in loop head\r\n\r\nAs of ES2015. This was valid as of ES5, which is why it still works in popular implementations."}}