handle vm uncaughts
This commit is contained in:
parent
790c29e976
commit
999cdb81ea
1 changed files with 4 additions and 0 deletions
4
vm.js
4
vm.js
|
@ -74,3 +74,7 @@ parentPort.on('message', (msg) => {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
process.on('uncaughtException', (e) => {
|
||||||
|
console.log(`Caught an uncaught exception in the worker!\n${e.stack}`)
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue