Created
September 15, 2020 16:43
-
-
Save a0viedo/81eda8c7d6ab4af3f42f5c7a2fe11ed0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
async function foo() { | |
return await bar(); | |
} | |
async function bar() { | |
await Promise.resolve(); | |
throw new Error('oh no'); | |
} | |
foo().catch(error => console.log(error.stack)); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment