1 2 3 4 5 6 7 8 9 10
let error = null; try { throw new Error('Caught'); } catch (e) { error = e; } if (error) { throw new Error('Uncaught'); }