Created
May 10, 2016 17:40
-
-
Save uptownhr/9453d04548be53a859ef560144c8bd06 to your computer and use it in GitHub Desktop.
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
const later = new Promise( resolve => { | |
setTimeout(() =>{ | |
throw new Error('wtf') | |
resolve('testing') | |
}, 1000) | |
}) | |
later | |
.then(console.log) | |
.catch(console.log) // does not catch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment