Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit acab8be

Browse files
push dist
1 parent ae4482c commit acab8be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dist/process-helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class ProcessHelper extends messenger_1.Messenger {
4444
};
4545
this.childProcess.on('exit', this.autoRestartListener);
4646
this.childProcess.on('error', this.errorHandler);
47+
this.childProcess.on('uncaughtException', this.errorHandler);
48+
this.childProcess.on('unhandledRejection', this.errorHandler);
4749
}
4850
this.connect(this.childProcess);
4951
}
@@ -55,6 +57,8 @@ class ProcessHelper extends messenger_1.Messenger {
5557
this.disconnect();
5658
this.childProcess.off('exit', this.autoRestartListener);
5759
this.childProcess.off('error', this.errorHandler);
60+
this.childProcess.off('uncaughtException', this.errorHandler);
61+
this.childProcess.off('unhandledRejection', this.errorHandler);
5862
this.autoRestartListener = undefined;
5963
this.childProcess.kill('SIGTERM');
6064
this.childProcess = undefined;

0 commit comments

Comments
 (0)