Skip to content

Instantly share code, notes, and snippets.

@cakoose
Created November 2, 2017 02:17
Show Gist options
  • Save cakoose/dc4171cc52c63ddd0d812f5cd008beec to your computer and use it in GitHub Desktop.
Save cakoose/dc4171cc52c63ddd0d812f5cd008beec to your computer and use it in GitHub Desktop.
err Error: wat
at f (main.html:6)
at <anonymous>
<script>
async function blah() {};
async function f() {
await blah();
throw new Error('wat');
}
async function g() {
await blah();
await f();
}
g().then(() => {
console.log('done');
}, (err) => {
console.log('err', err);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment