5 lines
88 B
JavaScript

setTimeout(function() {
throw new Error('New error thrown automatically');
}, 1200);