internal/pkg/ir: raise string limit to 16 MiB

A string holds "current" hakurei source code. For now the compressed tarball is 4.9 MiB long.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-02-23 15:12:19 +09:00
parent ec7ee0789e
commit 485db515f7

View File

@@ -150,7 +150,7 @@ func (i *IContext) WriteUint32(v uint32) {
}
// irMaxStringLength is the maximum acceptable wire size of [IRKindString].
const irMaxStringLength = 1 << 20
const irMaxStringLength = 1 << 24
// IRStringError is a string value too big to encode in IR.
type IRStringError string