Skip to content
Prev Previous commit
Next Next commit
fixup! improve fixture
  • Loading branch information
Flarna committed Jan 8, 2020
commit acee3de9411d75c3f24354e687458292c07c05f1
5 changes: 4 additions & 1 deletion test/fixtures/uncaught-exceptions/uncaught-monitor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use strict';

// Keep the event loop alive.
setTimeout(() => {}, 1e6);

process.on(process.uncaughtExceptionMonitor, (err) => {
console.log(`Monitored: ${err.message}`);
console.log(`Monitored: ${err.message}`);
});

Comment thread
Flarna marked this conversation as resolved.
Outdated
throw new Error('Shall exit');