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