handle vm uncaughts

This commit is contained in:
Chayapak 2023-08-26 13:48:50 +07:00
parent 790c29e976
commit 999cdb81ea

4
vm.js
View file

@ -74,3 +74,7 @@ parentPort.on('message', (msg) => {
break
}
})
process.on('uncaughtException', (e) => {
console.log(`Caught an uncaught exception in the worker!\n${e.stack}`)
})