NodeJs menangkap pengecualian tanpa batas

process
	.on('uncaughtException', (err) => console.error(err, 'Uncaught Exception'))
	.on('unhandledRejection', (reason, promise) =>
		console.error(reason, 'Unhandled Rejection at', promise)
	);
Embarrassed Earthworm