JSFiddle - React, Tailwind, and code Playground
JavaScript
function a() {
try
{
a.error.here;
}
catch(e)
{
$('body').append('<div>' + e.toString() + '</div>');
throw e;
}
}
function b() {
try
{
b.error.here;
}
catch(e)
{
$('body').append('<div>' + e.toString() + '</div>');
throw e;
}
setTimeout(b, 2000);
}
setInterval(a, 2000);
setTimeout(b, 2000);