jsjs trigger window error

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

Also in JavaScript: