Skip to content

Instantly share code, notes, and snippets.

@stoyanvi
Forked from FGRibreau/Non-blocking-error.js
Last active August 29, 2015 14:08
Show Gist options
  • Save stoyanvi/915d51543bdaeff8130d to your computer and use it in GitHub Desktop.
Save stoyanvi/915d51543bdaeff8130d to your computer and use it in GitHub Desktop.
function toBeProfiled(){
throw new Error('Show me the stack!');
//Do something here
}
function launchApp(){
function doThing(){
console.debug(toBeProfiled);
toBeProfiled();
//Do something here
}
function doAnotherThing(){
toBeProfiled();
//Do something here
alert('OK');
}
doThing();
doAnotherThing();
}
launchApp();
function toBeProfiled(){
console.log(new Error('Show me the stack!'));
//Do something here
}
function launchApp(){
function doThing(){
console.debug(toBeProfiled);
toBeProfiled();
//Do something here
}
function doAnotherThing(){
toBeProfiled();
//Do something here
alert('OK');
}
doThing();
doAnotherThing();
}
launchApp();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment