From 39acb363eb007ddd17720ec77a869b8861422b89 Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Thu, 12 Dec 2024 14:55:10 +0000 Subject: [PATCH] fix ipc qchar --- src/ipc/QChar.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipc/QChar.ts b/src/ipc/QChar.ts index 3ebabd7a..ebf7fca1 100644 --- a/src/ipc/QChar.ts +++ b/src/ipc/QChar.ts @@ -25,8 +25,7 @@ export default class QChar extends U8 { static listToIPC(values: Array): Uint8Array { const charData = values.map((v) => u8u16(v && v.length ? v[0] : " ")); - // eslint-disable-next-line prefer-spread - const merged = ([] as number[]).concat.apply([], charData); + const merged = (charData as any).flat(); const size = charData.length + 6; const buffer = TypeBase.createBuffer(size);