From 64b0c461a2edec74b63ffe51ce4727561aefa162 Mon Sep 17 00:00:00 2001 From: Egor Aristov Date: Sun, 16 Nov 2025 06:34:28 +0300 Subject: [PATCH] fix ts lib this binding --- lib/ts/src/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ts/src/lib.ts b/lib/ts/src/lib.ts index 29db357..b0ce809 100644 --- a/lib/ts/src/lib.ts +++ b/lib/ts/src/lib.ts @@ -92,7 +92,7 @@ abstract class IPCCommon { protected processMsg(msg: Message): void { switch (msg.type) { case MsgType.Call: - this.handleCall(msg).catch(this.errorQueue.put); + this.handleCall(msg).catch((e) => this.errorQueue.put(e)); break; case MsgType.Response: this.handleResponse(msg);