{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1609","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1609/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1609/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1609/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1609","id":53575827,"number":1609,"title":"Emit of 'arguments' in arrow functions is incorrect per ES6 spec.","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Breaking%20Change","name":"Breaking Change","color":"eb6420"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"yuit","id":489742,"avatar_url":"https://avatars.githubusercontent.com/u/489742?v=3","gravatar_id":"","url":"https://api.github.com/users/yuit","html_url":"https://github.com/yuit","followers_url":"https://api.github.com/users/yuit/followers","following_url":"https://api.github.com/users/yuit/following{/other_user}","gists_url":"https://api.github.com/users/yuit/gists{/gist_id}","starred_url":"https://api.github.com/users/yuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuit/subscriptions","organizations_url":"https://api.github.com/users/yuit/orgs","repos_url":"https://api.github.com/users/yuit/repos","events_url":"https://api.github.com/users/yuit/events{/privacy}","received_events_url":"https://api.github.com/users/yuit/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/7","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.5","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/7/labels","id":874650,"number":7,"title":"TypeScript 1.5","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":229,"state":"open","created_at":"2014-11-20T18:06:13Z","updated_at":"2015-04-19T20:10:32Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-01-06T23:10:10Z","updated_at":"2015-04-19T21:31:55Z","closed_at":"2015-02-06T22:28:43Z","body":"From [9.2.13 of the ES6 Spec Draft](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-functiondeclarationinstantiation):\r\n\r\n> a. NOTE Arrow functions never have an arguments objects.\r\n\r\nIn fact, we should be capturing `arguments` from the first containing function expression and error if there is none. The correct emit for something like\r\n\r\n```TypeScript\r\nfunction f() {\r\n    return () => arguments;\r\n}\r\n```\r\n\r\nwould be the following:\r\n\r\n```JavaScript\r\nfunction f() {\r\n    var _arguments = arguments;\r\n    return () => _arguments;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/94316890","html_url":"https://github.com/Microsoft/TypeScript/issues/1609#issuecomment-94316890","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1609","id":94316890,"user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T21:31:55Z","updated_at":"2015-04-19T21:31:55Z","body":"@robertpenner by design. Just use \"function\" instead of \"()=>\""}}