{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/11960","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/11960/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/11960/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/11960/events","html_url":"https://github.com/nodejs/node/issues/11960","id":215726633,"number":11960,"title":"In async function, returns a value in try block will before await statement in finally block","user":{"login":"zbinlin","id":880513,"avatar_url":"https://avatars2.githubusercontent.com/u/880513?v=3","gravatar_id":"","url":"https://api.github.com/users/zbinlin","html_url":"https://github.com/zbinlin","followers_url":"https://api.github.com/users/zbinlin/followers","following_url":"https://api.github.com/users/zbinlin/following{/other_user}","gists_url":"https://api.github.com/users/zbinlin/gists{/gist_id}","starred_url":"https://api.github.com/users/zbinlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbinlin/subscriptions","organizations_url":"https://api.github.com/users/zbinlin/orgs","repos_url":"https://api.github.com/users/zbinlin/repos","events_url":"https://api.github.com/users/zbinlin/events{/privacy}","received_events_url":"https://api.github.com/users/zbinlin/received_events","type":"User","site_admin":false},"labels":[{"id":151728674,"url":"https://api.github.com/repos/nodejs/node/labels/confirmed-bug","name":"confirmed-bug","color":"fc2929","default":false},{"id":176191361,"url":"https://api.github.com/repos/nodejs/node/labels/V8","name":"V8","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-03-21T12:41:56Z","updated_at":"2017-03-22T17:20:15Z","closed_at":null,"body":"* **Version**: 7.7.3\r\n* **Platform**: Arch Linux\r\n\r\nTestcase:\r\n```javascript\r\nasync function test() {\r\n    try {\r\n        console.log(\"1\");\r\n        return await Promise.resolve();\r\n    } finally {\r\n        console.log(\"2\");\r\n        await Promise.resolve();\r\n        console.log(\"3\");\r\n    }\r\n}\r\n\r\ntest().then(() => {\r\n    console.log(\"4\");\r\n});\r\n```\r\n\r\nExpected: \r\n```\r\n1\r\n2\r\n3\r\n4\r\n```\r\n\r\nActual:\r\n```\r\n1\r\n2\r\n4\r\n3\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/288473648","html_url":"https://github.com/nodejs/node/issues/11960#issuecomment-288473648","issue_url":"https://api.github.com/repos/nodejs/node/issues/11960","id":288473648,"user":{"login":"targos","id":2352663,"avatar_url":"https://avatars3.githubusercontent.com/u/2352663?v=3","gravatar_id":"","url":"https://api.github.com/users/targos","html_url":"https://github.com/targos","followers_url":"https://api.github.com/users/targos/followers","following_url":"https://api.github.com/users/targos/following{/other_user}","gists_url":"https://api.github.com/users/targos/gists{/gist_id}","starred_url":"https://api.github.com/users/targos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/targos/subscriptions","organizations_url":"https://api.github.com/users/targos/orgs","repos_url":"https://api.github.com/users/targos/repos","events_url":"https://api.github.com/users/targos/events{/privacy}","received_events_url":"https://api.github.com/users/targos/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T17:20:15Z","updated_at":"2017-03-22T17:20:15Z","body":"Thank you @gsathya. It's indeed easier to merge. I backported https://codereview.chromium.org/2633353002 with it.\r\nI will do some testing and open a PR tomorrow."}}
{"actor":{"display_login":"targos"}}