process
.on("uncaughtException", (err) => {
console.log(err);
})
.on("unhandledRejection", (err) => {
console.log(err);
})
.on("uncaughtExceptionMonitor", (err) => {
console.log(err);
});
Would this piece of code stop a Node JS process from crashing even without try and catch blocks for the line of code to let out a promise rejection to explicitly crash the code?