JSFiddle - React, Tailwind, and code Playground
by jstenkvist
JavaScript
function one(){
try {
console.log("a");
two();
console.log("b");
} catch(e){
console.log(e == 7); //this is true!
}
}
function two(){
try {
window.event.stopPropagation();
if(true){ throw new Error();}
} catch(e){
console.log("d");
throw 7;
}
}
one();