{"action":"created","issue":{"url":"https://api.github.com/repos/MatAtBread/nodent/issues/108","repository_url":"https://api.github.com/repos/MatAtBread/nodent","labels_url":"https://api.github.com/repos/MatAtBread/nodent/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/MatAtBread/nodent/issues/108/comments","events_url":"https://api.github.com/repos/MatAtBread/nodent/issues/108/events","html_url":"https://github.com/MatAtBread/nodent/issues/108","id":315661319,"number":108,"title":"My code breaks from hoisting. Possible to _only_ transform async/await - not `const`, etc?","user":{"login":"ozra","id":563674,"avatar_url":"https://avatars0.githubusercontent.com/u/563674?v=4","gravatar_id":"","url":"https://api.github.com/users/ozra","html_url":"https://github.com/ozra","followers_url":"https://api.github.com/users/ozra/followers","following_url":"https://api.github.com/users/ozra/following{/other_user}","gists_url":"https://api.github.com/users/ozra/gists{/gist_id}","starred_url":"https://api.github.com/users/ozra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozra/subscriptions","organizations_url":"https://api.github.com/users/ozra/orgs","repos_url":"https://api.github.com/users/ozra/repos","events_url":"https://api.github.com/users/ozra/events{/privacy}","received_events_url":"https://api.github.com/users/ozra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-18T22:16:59Z","updated_at":"2018-04-19T09:45:23Z","closed_at":"2018-04-19T09:31:35Z","author_association":"NONE","body":"I have a loop, in it closures with click-handlers are created with id's from the loop. After running the code through nodent (which would be a saver because of Safari 10.*) it has transformed not only asyncs and awaits, but turned `consts` in to `var`, and thereby hoisted them far outside of the loop, thereby making all the click-handlers point to the last item.\r\n\r\nThis in it self is easily remedied in our source - but there's no telling how many other places this causes a problem!\r\n\r\nSo — is there no flag to enable _only transforming said constructs?_ \r\n\r\nCool concept and solution BTW! :)\r\n\r\n[edit] I'm using the command-line tool in a build-script atm."},"comment":{"url":"https://api.github.com/repos/MatAtBread/nodent/issues/comments/382675875","html_url":"https://github.com/MatAtBread/nodent/issues/108#issuecomment-382675875","issue_url":"https://api.github.com/repos/MatAtBread/nodent/issues/108","id":382675875,"user":{"login":"ozra","id":563674,"avatar_url":"https://avatars0.githubusercontent.com/u/563674?v=4","gravatar_id":"","url":"https://api.github.com/users/ozra","html_url":"https://github.com/ozra","followers_url":"https://api.github.com/users/ozra/followers","following_url":"https://api.github.com/users/ozra/following{/other_user}","gists_url":"https://api.github.com/users/ozra/gists{/gist_id}","starred_url":"https://api.github.com/users/ozra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozra/subscriptions","organizations_url":"https://api.github.com/users/ozra/orgs","repos_url":"https://api.github.com/users/ozra/repos","events_url":"https://api.github.com/users/ozra/events{/privacy}","received_events_url":"https://api.github.com/users/ozra/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T09:45:23Z","updated_at":"2018-04-19T09:45:23Z","author_association":"NONE","body":"Sidenote, maintaining originally intended semantics _could_ be maintained by transpiling in iife-closures with consts locked in where deemed needed — but I guess that would be a hellish endeavor  to implement...\r\n"}}
{"actor":{"display_login":"ozra"}}