From 2ba81b393b0a9fae0e5f30773899b16b9b586a73 Mon Sep 17 00:00:00 2001 From: RebeccaMahany Date: Tue, 23 Jul 2024 16:46:54 -0400 Subject: [PATCH] Support arrays of ascii strings --- ee/indexeddb/values.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ee/indexeddb/values.go b/ee/indexeddb/values.go index 2540de92b..b65618717 100644 --- a/ee/indexeddb/values.go +++ b/ee/indexeddb/values.go @@ -277,6 +277,12 @@ func deserializeSparseArray(ctx context.Context, slogger *slog.Logger, srcReader return nil, fmt.Errorf("decoding object in array: %w", err) } arrItems[i] = string(obj) // cast to string so it's readable when marshalled again below + case tokenAsciiStr: + str, err := deserializeAsciiStr(srcReader) + if err != nil { + return nil, fmt.Errorf("decoding string in array: %w", err) + } + arrItems[i] = string(str) // cast to string so it's readable when marshalled again below default: return nil, fmt.Errorf("unimplemented array item type 0x%02x / `%s`", nextByte, string(nextByte)) }