JSFiddle - React, Tailwind, and code Playground
JavaScript
window.onerror=function(error){
alert("errorhandler 1: "+error);
}
if(1){
window.addEventListener("error",function(error){
alert("errorhandler 2: "+error);
});
}
(async function(){
let foo= ((await ( await fetch("/no_json_plz_i_want_an_error")).json()));
})();