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/7285d7cfc38248b813f7cd34b77647e6 to your computer and use it in GitHub Desktop.
Save jmar777/7285d7cfc38248b813f7cd34b77647e6 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