{"action":"opened","issue":{"url":"https://api.github.com/repos/MatAtBread/nodent/issues/48","repository_url":"https://api.github.com/repos/MatAtBread/nodent","labels_url":"https://api.github.com/repos/MatAtBread/nodent/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/MatAtBread/nodent/issues/48/comments","events_url":"https://api.github.com/repos/MatAtBread/nodent/issues/48/events","html_url":"https://github.com/MatAtBread/nodent/issues/48","id":165873621,"number":48,"title":"Let destructuring hoisting incompatible w/Buble","user":{"login":"Akkuma","id":342889,"avatar_url":"https://avatars.githubusercontent.com/u/342889?v=3","gravatar_id":"","url":"https://api.github.com/users/Akkuma","html_url":"https://github.com/Akkuma","followers_url":"https://api.github.com/users/Akkuma/followers","following_url":"https://api.github.com/users/Akkuma/following{/other_user}","gists_url":"https://api.github.com/users/Akkuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Akkuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akkuma/subscriptions","organizations_url":"https://api.github.com/users/Akkuma/orgs","repos_url":"https://api.github.com/users/Akkuma/repos","events_url":"https://api.github.com/users/Akkuma/events{/privacy}","received_events_url":"https://api.github.com/users/Akkuma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-15T20:43:46Z","updated_at":"2016-07-15T20:43:46Z","closed_at":null,"body":"If you write something like\r\n```\r\nasync function test() {\r\n    let { x } = await something()\r\n}\r\n```\r\n\r\nthe output is\r\n```\r\nfunction test() {\r\n    return new Promise((function ($return, $error) {\r\n        let x;\r\n        return something().then((function ($await_1) {\r\n            ({x} = $await_1);\r\n            return $return();\r\n        }).$asyncbind(this, $error), $error);\r\n    }).$asyncbind(this));\r\n}\r\n```\r\n\r\nBuble then fails to convert this to ES5 https://buble.surge.sh/#function%20test()%20%7B%0A%20%20%20%20return%20new%20Promise((function%20(%24return%2C%20%24error)%20%7B%0A%20%20%20%20%20%20%20%20let%20x%3B%0A%20%20%20%20%20%20%20%20return%20something().then((function%20(%24await_1)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20(%7Bx%7D%20%3D%20%24await_1)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20%24return()%3B%0A%20%20%20%20%20%20%20%20%7D).%24asyncbind(this%2C%20%24error)%2C%20%24error)%3B%0A%20%20%20%20%7D).%24asyncbind(this))%3B%0A%7D%0A\r\n\r\n"}}
{"actor":{"display_login":"Akkuma"}}