{"action":"closed","issue":{"url":"https://api.github.com/repos/kangax/compat-table/issues/590","labels_url":"https://api.github.com/repos/kangax/compat-table/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/kangax/compat-table/issues/590/comments","events_url":"https://api.github.com/repos/kangax/compat-table/issues/590/events","html_url":"https://github.com/kangax/compat-table/issues/590","id":96988182,"number":590,"title":"redefine const won't throw an error in iojs","user":{"login":"popomore","id":360661,"avatar_url":"https://avatars.githubusercontent.com/u/360661?v=3","gravatar_id":"","url":"https://api.github.com/users/popomore","html_url":"https://github.com/popomore","followers_url":"https://api.github.com/users/popomore/followers","following_url":"https://api.github.com/users/popomore/following{/other_user}","gists_url":"https://api.github.com/users/popomore/gists{/gist_id}","starred_url":"https://api.github.com/users/popomore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popomore/subscriptions","organizations_url":"https://api.github.com/users/popomore/orgs","repos_url":"https://api.github.com/users/popomore/repos","events_url":"https://api.github.com/users/popomore/events{/privacy}","received_events_url":"https://api.github.com/users/popomore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-24T07:36:07Z","updated_at":"2015-07-25T03:53:37Z","closed_at":"2015-07-25T03:53:37Z","body":"```\r\n> const a = 1; a = 2; \r\n2\r\n> a\r\n1\r\n```\r\n\r\nIt just reject the new value, won't throw an error.\r\n\r\nTest on iojs@2.3.3, iojs@1.8.4 and the latest chrome\r\n\r\nBy the way, Firefox will throw a SyntaxError\r\n\r\n> const a = 1; a = 2; now also throws a SyntaxError (\"invalid assignment to const a\").\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const"}}