G §643: a TypeScript bundle's value over one call's limit fails at once, naming the limit

Builds: design 47 G §643, §518, A-21
Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 21:54:56 +01:00
parent 48706563c3
commit 0319b4c309
2 changed files with 20 additions and 2 deletions
+5
View File
@@ -1005,3 +1005,8 @@ test("a bundle reads its tool runner's capability words once, reads an unknown c
if (was === undefined) delete process.env.MESH_NODE;
else process.env.MESH_NODE = was;
});
test("a TypeScript bundle's value over one call's limit fails at once, naming the limit (design 47 G §643)", async () => {
const { state, CHUNK_BYTES } = await import("../dist/state/index.js");
await assert.rejects(state("s").put("k", { text: "x".repeat(CHUNK_BYTES) }), /512 KiB/);
});