{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2720","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2720/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2720/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2720/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2720","id":67774249,"number":2720,"title":"Invalid output for object literal with shorthand assignments and computed properties","user":{"login":"robertknight","id":2458,"avatar_url":"https://avatars.githubusercontent.com/u/2458?v=3","gravatar_id":"","url":"https://api.github.com/users/robertknight","html_url":"https://github.com/robertknight","followers_url":"https://api.github.com/users/robertknight/followers","following_url":"https://api.github.com/users/robertknight/following{/other_user}","gists_url":"https://api.github.com/users/robertknight/gists{/gist_id}","starred_url":"https://api.github.com/users/robertknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertknight/subscriptions","organizations_url":"https://api.github.com/users/robertknight/orgs","repos_url":"https://api.github.com/users/robertknight/repos","events_url":"https://api.github.com/users/robertknight/events{/privacy}","received_events_url":"https://api.github.com/users/robertknight/received_events","type":"User","site_admin":false},"labels":[{"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":null,"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":40,"closed_issues":191,"state":"open","created_at":"2014-11-20T18:06:13Z","updated_at":"2015-04-11T18:50:02Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-04-11T11:18:40Z","updated_at":"2015-04-11T18:50:02Z","closed_at":"2015-04-11T18:50:02Z","body":"With TS 1.5.0-alpha, this TypeScript compiles:\r\n\r\n```ts\r\nlet foo = 2;\r\n\r\nlet obj = {\r\n\tfoo,\r\n\t['bar']: 3\r\n};\r\n```\r\n\r\nBut emits this JS with an invalid assignment '_a.foo = ,' assignment:\r\n\r\n```js\r\nvar foo = 2;\r\nvar obj = (_a = {\r\n    foo: foo\r\n},\r\n    _a.foo = ,\r\n    _a['bar'] = 3,\r\n    _a);\r\nconsole.log(obj);\r\nvar _a;\r\n```"}}