{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel.github.io/issues/826","repository_url":"https://api.github.com/repos/babel/babel.github.io","labels_url":"https://api.github.com/repos/babel/babel.github.io/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel.github.io/issues/826/comments","events_url":"https://api.github.com/repos/babel/babel.github.io/issues/826/events","html_url":"https://github.com/babel/babel.github.io/issues/826","id":156667365,"number":826,"title":"Temporal Dead Zone","user":{"login":"anirudh-modi","id":16587779,"avatar_url":"https://avatars.githubusercontent.com/u/16587779?v=3","gravatar_id":"","url":"https://api.github.com/users/anirudh-modi","html_url":"https://github.com/anirudh-modi","followers_url":"https://api.github.com/users/anirudh-modi/followers","following_url":"https://api.github.com/users/anirudh-modi/following{/other_user}","gists_url":"https://api.github.com/users/anirudh-modi/gists{/gist_id}","starred_url":"https://api.github.com/users/anirudh-modi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirudh-modi/subscriptions","organizations_url":"https://api.github.com/users/anirudh-modi/orgs","repos_url":"https://api.github.com/users/anirudh-modi/repos","events_url":"https://api.github.com/users/anirudh-modi/events{/privacy}","received_events_url":"https://api.github.com/users/anirudh-modi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-25T05:38:13Z","updated_at":"2016-08-12T07:27:48Z","closed_at":null,"body":"In ES6 it was mentioned, that if we try to access a variable declared using ````let```` or ````const```` before it is declared it will throw Reference error, however when I try to do so,  dont get any error\r\n\r\nhttps://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015&code=%0A%20%20console.log(a)%3B%0A%20%20%0A%20%20const%20a%3D1%3B\r\n\r\nIn the above output it is visible that no error are thrown and it silently console prints undefined. Should not it throw some error?"},"comment":{"url":"https://api.github.com/repos/babel/babel.github.io/issues/comments/239379508","html_url":"https://github.com/babel/babel.github.io/issues/826#issuecomment-239379508","issue_url":"https://api.github.com/repos/babel/babel.github.io/issues/826","id":239379508,"user":{"login":"infinnie","id":8168391,"avatar_url":"https://avatars.githubusercontent.com/u/8168391?v=3","gravatar_id":"","url":"https://api.github.com/users/infinnie","html_url":"https://github.com/infinnie","followers_url":"https://api.github.com/users/infinnie/followers","following_url":"https://api.github.com/users/infinnie/following{/other_user}","gists_url":"https://api.github.com/users/infinnie/gists{/gist_id}","starred_url":"https://api.github.com/users/infinnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infinnie/subscriptions","organizations_url":"https://api.github.com/users/infinnie/orgs","repos_url":"https://api.github.com/users/infinnie/repos","events_url":"https://api.github.com/users/infinnie/events{/privacy}","received_events_url":"https://api.github.com/users/infinnie/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T07:27:48Z","updated_at":"2016-08-12T07:27:48Z","body":"```javascript\r\n{typeof a; let a}\r\n```\r\n\r\nAn error should be thrown in an ES6 environment, but not here in Babel-transpiled JavaScript.\r\nThrow either a compile-time error or a runtime one please."}}
{"actor":{"display_login":"infinnie"}}