{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11384","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11384/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11384/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11384/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11384","id":181165183,"number":11384,"title":"define get set bug.","user":{"login":"Gaubee","id":2151644,"avatar_url":"https://avatars.githubusercontent.com/u/2151644?v=3","gravatar_id":"","url":"https://api.github.com/users/Gaubee","html_url":"https://github.com/Gaubee","followers_url":"https://api.github.com/users/Gaubee/followers","following_url":"https://api.github.com/users/Gaubee/following{/other_user}","gists_url":"https://api.github.com/users/Gaubee/gists{/gist_id}","starred_url":"https://api.github.com/users/Gaubee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gaubee/subscriptions","organizations_url":"https://api.github.com/users/Gaubee/orgs","repos_url":"https://api.github.com/users/Gaubee/repos","events_url":"https://api.github.com/users/Gaubee/events{/privacy}","received_events_url":"https://api.github.com/users/Gaubee/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/High%20Priority","name":"High Priority","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/28","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.0.5","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/28/labels","id":1973939,"number":28,"title":"TypeScript 2.0.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":10,"closed_issues":22,"state":"open","created_at":"2016-08-31T00:19:52Z","updated_at":"2016-10-05T15:05:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-05T14:11:25Z","updated_at":"2016-10-05T15:06:06Z","closed_at":null,"body":"<!-- BUGS: Please use this template. -->\r\n<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:**  2.0.3\r\n\r\n**Code**\r\n\r\n```ts\r\n// A *self-contained* demonstration of the problem follows...\r\nvar config = {\r\n    [\"__type\"]: \"QAQ\",\r\n    get type() { \r\n        return this.__type\r\n    },\r\n    set type(new_type) { \r\n        this.__type = new_type\r\n    }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n```js\r\nvar config = (_a = {},\r\n    _a[\"__type\"] = \"QAQ\",\r\n    Object.defineProperty(_a, \"type\", {\r\n        get: function () {\r\n            return this.__type;\r\n        },\r\n        set: function (new_type) {\r\n            this.__type = new_type;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    }),\r\n    _a\r\n);\r\nvar _a;\r\n```\r\n**Actual behavior:** \r\n`Uncaught SyntaxError: Unexpected token ,`\r\n```js\r\nvar config = (_a = {},\r\n    _a[\"__type\"] = \"QAQ\",\r\n    Object.defineProperty(_a, \"type\", {\r\n        get: function () {\r\n            return this.__type;\r\n        },\r\n        set: function (new_type) {\r\n            this.__type = new_type;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    }),\r\n    , // Here, One more comma, then run error\r\n    _a\r\n);\r\nvar _a;\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/251702347","html_url":"https://github.com/Microsoft/TypeScript/issues/11384#issuecomment-251702347","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11384","id":251702347,"user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T15:06:06Z","updated_at":"2016-10-05T15:06:06Z","body":"@mhegazy assign this out? Repros in release-2.0.5"}}
{"actor":{"display_login":"RyanCavanaugh"}}