aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/nodeWorkerEntry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/nodeWorkerEntry.ts')
-rw-r--r--src/crypto/nodeWorkerEntry.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/nodeWorkerEntry.ts b/src/crypto/nodeWorkerEntry.ts
index ff7f8766b..9e2647ff6 100644
--- a/src/crypto/nodeWorkerEntry.ts
+++ b/src/crypto/nodeWorkerEntry.ts
@@ -69,7 +69,7 @@ process.once("message", (obj: any) => {
}
});
- process.on("error", (err: any) => {
+ process.on("uncaughtException", (err: any) => {
(g.onerror || g.self.onerror || (() => undefined))(err);
});