{"action":"created","issue":{"url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61","repository_url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy","labels_url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61/comments","events_url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61/events","html_url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61","id":211051361,"number":61,"title":"async method named \"get\"","user":{"login":"icodeforlove","id":139784,"avatar_url":"https://avatars3.githubusercontent.com/u/139784?v=3","gravatar_id":"","url":"https://api.github.com/users/icodeforlove","html_url":"https://github.com/icodeforlove","followers_url":"https://api.github.com/users/icodeforlove/followers","following_url":"https://api.github.com/users/icodeforlove/following{/other_user}","gists_url":"https://api.github.com/users/icodeforlove/gists{/gist_id}","starred_url":"https://api.github.com/users/icodeforlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icodeforlove/subscriptions","organizations_url":"https://api.github.com/users/icodeforlove/orgs","repos_url":"https://api.github.com/users/icodeforlove/repos","events_url":"https://api.github.com/users/icodeforlove/events{/privacy}","received_events_url":"https://api.github.com/users/icodeforlove/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-01T11:17:46Z","updated_at":"2017-03-01T18:57:23Z","closed_at":"2017-03-01T18:30:31Z","body":"When you name a async method `get` and try to decorate it, it will get called whenever it is referenced and not function as expected.\r\n\r\n```javascript\r\nlet decorator = target => {\r\n    return target;\r\n};\r\n\r\nclass Example {\r\n\t@decorator async get () {\r\n\t\tconsole.log('called');\r\n\t}\r\n}\r\n\r\nlet instance = new Example();\r\ntypeof instance.get;\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/comments/283434514","html_url":"https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61#issuecomment-283434514","issue_url":"https://api.github.com/repos/loganfsmyth/babel-plugin-transform-decorators-legacy/issues/61","id":283434514,"user":{"login":"icodeforlove","id":139784,"avatar_url":"https://avatars3.githubusercontent.com/u/139784?v=3","gravatar_id":"","url":"https://api.github.com/users/icodeforlove","html_url":"https://github.com/icodeforlove","followers_url":"https://api.github.com/users/icodeforlove/followers","following_url":"https://api.github.com/users/icodeforlove/following{/other_user}","gists_url":"https://api.github.com/users/icodeforlove/gists{/gist_id}","starred_url":"https://api.github.com/users/icodeforlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icodeforlove/subscriptions","organizations_url":"https://api.github.com/users/icodeforlove/orgs","repos_url":"https://api.github.com/users/icodeforlove/repos","events_url":"https://api.github.com/users/icodeforlove/events{/privacy}","received_events_url":"https://api.github.com/users/icodeforlove/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T18:57:23Z","updated_at":"2017-03-01T18:57:23Z","body":"```javascript\r\nlet decorator = target => {\r\n    return target;\r\n};\r\n\r\nclass Example {\r\n\t@decorator async get_ () {\r\n\t\tconsole.log('called');\r\n\t}\r\n}\r\n\r\nlet instance = new Example();\r\n\r\nconsole.log(typeof instance.get_);\r\n```\r\n\r\nI get function, maybe I have a bad babel config?"}}
{"actor":{"display_login":"icodeforlove"}}