{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/62","labels_url":"https://api.github.com/repos/facebook/flow/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/62/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/62/events","html_url":"https://github.com/facebook/flow/issues/62","id":49403053,"number":62,"title":"Support for ES6 features","user":{"login":"jlongster","id":17031,"avatar_url":"https://avatars.githubusercontent.com/u/17031?v=3","gravatar_id":"","url":"https://api.github.com/users/jlongster","html_url":"https://github.com/jlongster","followers_url":"https://api.github.com/users/jlongster/followers","following_url":"https://api.github.com/users/jlongster/following{/other_user}","gists_url":"https://api.github.com/users/jlongster/gists{/gist_id}","starred_url":"https://api.github.com/users/jlongster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlongster/subscriptions","organizations_url":"https://api.github.com/users/jlongster/orgs","repos_url":"https://api.github.com/users/jlongster/repos","events_url":"https://api.github.com/users/jlongster/events{/privacy}","received_events_url":"https://api.github.com/users/jlongster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/feature+request","name":"feature request","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-11-19T14:58:37Z","updated_at":"2015-01-04T05:09:51Z","closed_at":null,"body":"I didn't see an existing issue for this, nor do I see anything on the website about it, but I'm sure you all have plans for this. Looks like there are several ES6 features this doesn't support yet, particularly `let`:\r\n\r\n```js\r\nlet x = 5;\r\n```\r\n\r\n```                                                                                  \r\n/Users/james/projects/mozilla/gecko-dev/toolkit/devtools/server/actors/foo.js:3:1,10: \r\nUnsupported variable declaration: let\r\n\r\n/Users/james/projects/mozilla/gecko-dev/toolkit/devtools/server/actors/foo.js:3:5,5: var x\r\nUnknown global name\r\n```\r\n\r\nI'm interested in using this as a \"light\" type checker in Firefox. I don't know if we'll ever start adding a lot of type declarations, but this looks like it could be a nice \"linter\" using the weak mode. (still not sure how far that goes yet, but if it can even catch a few things that would be cool).\r\n\r\nSince we can code against SpiderMonkey, we use ES6 a lot, like:\r\n\r\n* `let`/`const`\r\n* for-of\r\n* short-hand object syntax (`{ foo }` turns into `{ foo: foo }`)\r\n* generators\r\n\r\nThat's just off the top of my head. On the file I tried, the main things I hit were let/const and for-of."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/68621406","html_url":"https://github.com/facebook/flow/issues/62#issuecomment-68621406","issue_url":"https://api.github.com/repos/facebook/flow/issues/62","id":68621406,"user":{"login":"peterwmwong","id":284734,"avatar_url":"https://avatars.githubusercontent.com/u/284734?v=3","gravatar_id":"","url":"https://api.github.com/users/peterwmwong","html_url":"https://github.com/peterwmwong","followers_url":"https://api.github.com/users/peterwmwong/followers","following_url":"https://api.github.com/users/peterwmwong/following{/other_user}","gists_url":"https://api.github.com/users/peterwmwong/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwmwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwmwong/subscriptions","organizations_url":"https://api.github.com/users/peterwmwong/orgs","repos_url":"https://api.github.com/users/peterwmwong/repos","events_url":"https://api.github.com/users/peterwmwong/events{/privacy}","received_events_url":"https://api.github.com/users/peterwmwong/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T05:09:51Z","updated_at":"2015-01-04T05:09:51Z","body":"+1 for modules"}}