fix(sandbox): exit if uncaughtException

This commit is contained in:
Manuel Astudillo
2022-01-17 10:49:54 +08:00
parent 5310cc6454
commit 43dc2e69df
+4 -1
View File
@@ -118,7 +118,10 @@ process.on('uncaughtException', err => {
cmd: 'failed',
value: err
});
throw err;
// An uncaughException leaves this process in a potentially undetermined state so
// we must exit
process.exit(-1);
});
/**