Skip to content

Instantly share code, notes, and snippets.

@jmar777
Created September 22, 2016 16:09
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 jmar777/8766e645512c6ba15bdba9d9e8cbb98a to your computer and use it in GitHub Desktop.
Save jmar777/8766e645512c6ba15bdba9d9e8cbb98a to your computer and use it in GitHub Desktop.
quick-async-error-scenarios-example.js
async function awaitsRejectection() {
await Promise.reject('blah');
}
async function throwsStuff() {
throw new Error('blah');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment