From 29d6ac34fd6b7e4f6b088d075482f4f4c9ce08e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20R=C3=B6ssler?= Date: Tue, 24 Mar 2026 13:26:50 +0100 Subject: [PATCH] fix error that byte could be undefined --- plugins/fs/guest-js/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fs/guest-js/index.ts b/plugins/fs/guest-js/index.ts index 1bbe0ec6de..bfee5951e7 100644 --- a/plugins/fs/guest-js/index.ts +++ b/plugins/fs/guest-js/index.ts @@ -280,7 +280,7 @@ function fromBytes(buffer: FixedSizeArray): number { let x = 0 for (let i = 0; i < size; i++) { // eslint-disable-next-line security/detect-object-injection - const byte = bytes[i] + const byte = bytes[i] ?? 0 x *= 0x100 x += byte }