Created
July 10, 2014 18:00
-
-
Save a0viedo/bbafab806aa461e584d4 to your computer and use it in GitHub Desktop.
Why is not that good idea try/catch
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
try{ | |
setTimeout(function(){ | |
throw new Error('kaboom'); // be my guess to throw outside the setTimeout function | |
}, 4000); | |
} | |
catch (err){ | |
console.log(err); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment