{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1310","labels_url":"https://api.github.com/repos/babel/babel/issues/1310/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1310/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1310/events","html_url":"https://github.com/babel/babel/issues/1310","id":69601156,"number":1310,"title":"A method doesn't have a getter.","user":{"login":"filimo","id":327296,"avatar_url":"https://avatars.githubusercontent.com/u/327296?v=3","gravatar_id":"","url":"https://api.github.com/users/filimo","html_url":"https://github.com/filimo","followers_url":"https://api.github.com/users/filimo/followers","following_url":"https://api.github.com/users/filimo/following{/other_user}","gists_url":"https://api.github.com/users/filimo/gists{/gist_id}","starred_url":"https://api.github.com/users/filimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filimo/subscriptions","organizations_url":"https://api.github.com/users/filimo/orgs","repos_url":"https://api.github.com/users/filimo/repos","events_url":"https://api.github.com/users/filimo/events{/privacy}","received_events_url":"https://api.github.com/users/filimo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-20T14:34:42Z","updated_at":"2015-04-21T16:03:01Z","closed_at":"2015-04-21T15:19:47Z","body":"I've taken below code from decorations sample.\r\n\r\n```javascript\r\nfunction autobind(target, key, descriptor) {\r\n  var fn = descriptor.value;\r\n  delete descriptor.value;\r\n  delete descriptor.writable;\r\n  descriptor.get = function () {\r\n    return this[key] = fn.bind(this);\r\n  };\r\n}\r\n\r\nclass Person {\r\n  firstName = \"Sebastian\";\r\n  lastName = \"McKenzie\";\r\n\r\n  @autobind\r\n  getFullName() {\r\n    return `${this.first} ${this.last}`;\r\n  }\r\n}\r\n\r\nconsole.log(new Person().getFullName.call(null), \"Sebastian McKenzie\")\r\n```\r\n\r\noutput:\r\nCannot set property getFullName of [object Object] which has only a getter\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/94853695","html_url":"https://github.com/babel/babel/issues/1310#issuecomment-94853695","issue_url":"https://api.github.com/repos/babel/babel/issues/1310","id":94853695,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T16:03:01Z","updated_at":"2015-04-21T16:03:01Z","body":"That's the way JavaScript works. Calling a function without a member expression evaluates it without a context."}}