Last active
June 26, 2017 16:28
-
-
Save LoganBarnett/4468ed7708f7137697118ef4d526db18 to your computer and use it in GitHub Desktop.
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
try { | |
// the foo declaration is hoisted out of the try block so it can be accessible later | |
var foo = await getAsyncFoo() | |
} | |
catch(e) { | |
console.error('oh noes!', e.message) | |
} | |
foo.doSomeThings() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment