{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1328","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1328/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1328/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1328/events","html_url":"https://github.com/facebook/react-native/issues/1328","id":77762231,"number":1328,"title":"es6 `let` block-scope binding construct is particularly dangerous","user":{"login":"psbanka","id":1179791,"avatar_url":"https://avatars.githubusercontent.com/u/1179791?v=3","gravatar_id":"","url":"https://api.github.com/users/psbanka","html_url":"https://github.com/psbanka","followers_url":"https://api.github.com/users/psbanka/followers","following_url":"https://api.github.com/users/psbanka/following{/other_user}","gists_url":"https://api.github.com/users/psbanka/gists{/gist_id}","starred_url":"https://api.github.com/users/psbanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psbanka/subscriptions","organizations_url":"https://api.github.com/users/psbanka/orgs","repos_url":"https://api.github.com/users/psbanka/repos","events_url":"https://api.github.com/users/psbanka/events{/privacy}","received_events_url":"https://api.github.com/users/psbanka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-18T18:47:14Z","updated_at":"2015-05-28T18:09:39Z","closed_at":"2015-05-28T16:27:24Z","body":"React-native's support for ES6 is fantastic, but one area where this could use some improvement is how `let` is handled.\r\n\r\nWhen a developer is using Chrome for debugging, the `let` statement is fine and no errors are produced. However, when a dev switches to the native JS engine in the phone or emulator, you get a white-screen crash with no error messages. This can result in a very sad and painful debugging experience, that I can personally attest to :cry: . \r\n\r\nIt would be nice if the pre-compile step would throw an exception for `let` when bundling or to throw an error in Chrome's console. Is that possible?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/106541453","html_url":"https://github.com/facebook/react-native/issues/1328#issuecomment-106541453","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1328","id":106541453,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T18:09:39Z","updated_at":"2015-05-28T18:09:39Z","body":"I expect it will ship with 0.6 because it's a bigger change and not a bug fix for 0.5.0 rc."}}