JSJS Trigger Window Erro

window.setTimeout(function() {throw new Error()}, 0);
florinrelea