{"draft":null,"from":163,"to":164,"files":[{"path":"server/src/small-frame-json.ts","added":9,"removed":2,"diff":"--- a/server/src/small-frame-json.ts\n+++ b/server/src/small-frame-json.ts\n@@ -10,6 +10,13 @@\n \t// Count UTF-8 after joining so a surrogate pair split across chunks counts once.\n \tif (new TextEncoder().encode(text).byteLength > 4096) throw Error(\"small canonical frame exceeds bound\");\n \t// Preserve depth, key and scalar limits; the fast path must not change acceptance.\n-\tfor (const event of jsonEvents([text])) void event;\n-\treturn JSON.parse(text);\n+\tfor (const event of jsonEvents([text], { finiteNumbers: true })) void event;\n+\tconst freeze = (value: unknown): unknown => {\n+\t\tif (value !== null && typeof value === \"object\") {\n+\t\t\tfor (const child of Object.values(value)) freeze(child);\n+\t\t\tObject.freeze(value);\n+\t\t}\n+\t\treturn value;\n+\t};\n+\treturn freeze(JSON.parse(text));\n }"}],"unmatched":[]}