{"action":"created","issue":{"url":"https://api.github.com/repos/Draccoz/twc/issues/122","repository_url":"https://api.github.com/repos/Draccoz/twc","labels_url":"https://api.github.com/repos/Draccoz/twc/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/Draccoz/twc/issues/122/comments","events_url":"https://api.github.com/repos/Draccoz/twc/issues/122/events","html_url":"https://github.com/Draccoz/twc/issues/122","id":277964703,"number":122,"title":"Async Functions","user":{"login":"adaliszk","id":5189131,"avatar_url":"https://avatars2.githubusercontent.com/u/5189131?v=4","gravatar_id":"","url":"https://api.github.com/users/adaliszk","html_url":"https://github.com/adaliszk","followers_url":"https://api.github.com/users/adaliszk/followers","following_url":"https://api.github.com/users/adaliszk/following{/other_user}","gists_url":"https://api.github.com/users/adaliszk/gists{/gist_id}","starred_url":"https://api.github.com/users/adaliszk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaliszk/subscriptions","organizations_url":"https://api.github.com/users/adaliszk/orgs","repos_url":"https://api.github.com/users/adaliszk/repos","events_url":"https://api.github.com/users/adaliszk/events{/privacy}","received_events_url":"https://api.github.com/users/adaliszk/received_events","type":"User","site_admin":false},"labels":[{"id":481574741,"url":"https://api.github.com/repos/Draccoz/twc/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"Draccoz","id":4731061,"avatar_url":"https://avatars2.githubusercontent.com/u/4731061?v=4","gravatar_id":"","url":"https://api.github.com/users/Draccoz","html_url":"https://github.com/Draccoz","followers_url":"https://api.github.com/users/Draccoz/followers","following_url":"https://api.github.com/users/Draccoz/following{/other_user}","gists_url":"https://api.github.com/users/Draccoz/gists{/gist_id}","starred_url":"https://api.github.com/users/Draccoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Draccoz/subscriptions","organizations_url":"https://api.github.com/users/Draccoz/orgs","repos_url":"https://api.github.com/users/Draccoz/repos","events_url":"https://api.github.com/users/Draccoz/events{/privacy}","received_events_url":"https://api.github.com/users/Draccoz/received_events","type":"User","site_admin":false},"assignees":[{"login":"Draccoz","id":4731061,"avatar_url":"https://avatars2.githubusercontent.com/u/4731061?v=4","gravatar_id":"","url":"https://api.github.com/users/Draccoz","html_url":"https://github.com/Draccoz","followers_url":"https://api.github.com/users/Draccoz/followers","following_url":"https://api.github.com/users/Draccoz/following{/other_user}","gists_url":"https://api.github.com/users/Draccoz/gists{/gist_id}","starred_url":"https://api.github.com/users/Draccoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Draccoz/subscriptions","organizations_url":"https://api.github.com/users/Draccoz/orgs","repos_url":"https://api.github.com/users/Draccoz/repos","events_url":"https://api.github.com/users/Draccoz/events{/privacy}","received_events_url":"https://api.github.com/users/Draccoz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-11-30T01:13:38Z","updated_at":"2017-12-08T11:07:41Z","closed_at":null,"author_association":"NONE","body":"targeting `es6` the compile removes all the async keywords from functions an leaves the `await` in place, transformed into a variable. Since that's not created it is a ReferenceError and the whole function just fails.\r\n\r\n- The quickest solution would be to remove all `await;` from the function contents\r\n- The actual solution would be to detect async functions, ether wrap it with `Promise` or just use as it should be used if the target is `es6`"},"comment":{"url":"https://api.github.com/repos/Draccoz/twc/issues/comments/350237594","html_url":"https://github.com/Draccoz/twc/issues/122#issuecomment-350237594","issue_url":"https://api.github.com/repos/Draccoz/twc/issues/122","id":350237594,"user":{"login":"Draccoz","id":4731061,"avatar_url":"https://avatars2.githubusercontent.com/u/4731061?v=4","gravatar_id":"","url":"https://api.github.com/users/Draccoz","html_url":"https://github.com/Draccoz","followers_url":"https://api.github.com/users/Draccoz/followers","following_url":"https://api.github.com/users/Draccoz/following{/other_user}","gists_url":"https://api.github.com/users/Draccoz/gists{/gist_id}","starred_url":"https://api.github.com/users/Draccoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Draccoz/subscriptions","organizations_url":"https://api.github.com/users/Draccoz/orgs","repos_url":"https://api.github.com/users/Draccoz/repos","events_url":"https://api.github.com/users/Draccoz/events{/privacy}","received_events_url":"https://api.github.com/users/Draccoz/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T11:07:41Z","updated_at":"2017-12-08T11:07:41Z","author_association":"OWNER","body":"Removing the `async/await` means making something that was supposed to be asynchronous to work synchronously, which is a bad thing :P. I will let tsc compiler to change it to promises, just need to work out how to keep it with native Polymer 1 syntax."}}
{"actor":{"display_login":"Draccoz"}}