{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/22862","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/22862/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/22862/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/22862/events","html_url":"https://github.com/Microsoft/TypeScript/issues/22862","id":308316971,"number":22862,"title":"prototype of method is not undefined","user":{"login":"unional","id":3254987,"avatar_url":"https://avatars0.githubusercontent.com/u/3254987?v=4","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-25T02:42:16Z","updated_at":"2018-03-25T07:35:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"TS: 2.7.1\r\n\r\n```ts\r\nconst obj = { f() {} }\r\n\r\nconsole.log(obj.f.prototype) // f {}\r\n```\r\n\r\nIf you do the same in Node or browser (Chrome), it is `undefined`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/375951451","html_url":"https://github.com/Microsoft/TypeScript/issues/22862#issuecomment-375951451","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/22862","id":375951451,"user":{"login":"unional","id":3254987,"avatar_url":"https://avatars0.githubusercontent.com/u/3254987?v=4","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T07:35:24Z","updated_at":"2018-03-25T07:35:24Z","author_association":"CONTRIBUTOR","body":"btw this almost feels like it is a bug in JavaScript.\r\n\r\n```js\r\nconst obj = { f() { } }\r\n\r\n// vs\r\nfunction f() {}\r\nconst obj = { f }\r\n```\r\n\r\nIt is surprising to know that they are not the same.\r\n\r\nDo you know what's the reasoning behind it?"}}
{"actor":{"display_login":"unional"}}