JSFiddle - React, Tailwind, and code Playground
by deadlyicon
JavaScript
function e1(){
throw new Error('e1 error');
}
!function(){
function e2(){
throw new Error('e2 error');
};
window.e2 = e2;
}();
try{ e1() }catch(e){ alert("'"+e.message+"' should == 'e1 error'"); }
try{ e2() }catch(e){ alert("'"+e.message+"' should == 'e2 error'"); }