JSFiddle - React, Tailwind, and code Playground
by krisselden
JavaScript
function raise() {
throw new Error('boom');
}
var current = null;
var loop = {
end: function() {
this.prev = current;
current = this;
try {
raise();
} finally {
current = this.prev;
}
},
prev: null
};
try {
function run() {
try {
console.log('start');
} finally {
loop.end();
}
}
} catch (e) {
$(document.body).text(e);
}