Created
September 22, 2016 16:09
-
-
Save jmar777/8766e645512c6ba15bdba9d9e8cbb98a to your computer and use it in GitHub Desktop.
quick-async-error-scenarios-example.js
This file contains hidden or 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
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