Skip to content

Instantly share code, notes, and snippets.

@a0viedo
Created September 15, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a0viedo/81eda8c7d6ab4af3f42f5c7a2fe11ed0 to your computer and use it in GitHub Desktop.
Save a0viedo/81eda8c7d6ab4af3f42f5c7a2fe11ed0 to your computer and use it in GitHub Desktop.
(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