diff --git a/vm.js b/vm.js index 26e8083..31fdaf5 100644 --- a/vm.js +++ b/vm.js @@ -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}`) +})