fix ts lib this binding

This commit is contained in:
Egor Aristov 2025-11-16 06:34:28 +03:00
parent 803ad02772
commit 64b0c461a2
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -92,7 +92,7 @@ abstract class IPCCommon {
protected processMsg(msg: Message): void { protected processMsg(msg: Message): void {
switch (msg.type) { switch (msg.type) {
case MsgType.Call: case MsgType.Call:
this.handleCall(msg).catch(this.errorQueue.put); this.handleCall(msg).catch((e) => this.errorQueue.put(e));
break; break;
case MsgType.Response: case MsgType.Response:
this.handleResponse(msg); this.handleResponse(msg);