Skip to content

Instantly share code, notes, and snippets.

@Jagathishrex
Created April 21, 2020 18:37
Show Gist options
  • Select an option

  • Save Jagathishrex/7f7dcd8b42bdba13f1bae578d20e1f91 to your computer and use it in GitHub Desktop.

Select an option

Save Jagathishrex/7f7dcd8b42bdba13f1bae578d20e1f91 to your computer and use it in GitHub Desktop.
window.onerror = function(e) {
console.log("error handled", e);
}
function funcWithError() {
a; // a is not defined
}
function test() {
funcWithError();
console.log("hi"); // this will not be executed
}
test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment