Skip to content

Instantly share code, notes, and snippets.

@a0viedo
Created July 10, 2014 18:00
Show Gist options
  • Save a0viedo/bbafab806aa461e584d4 to your computer and use it in GitHub Desktop.
Save a0viedo/bbafab806aa461e584d4 to your computer and use it in GitHub Desktop.
Why is not that good idea try/catch
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