fix: consolidate boundary ownership and cleanup failure paths (#477)

This commit is contained in:
morluto authored and GitHub committed 2026-09-08 10:59:13 +08:00
1 parent c490d85045
commit 2160d4fae5
138 files changed
+2220 -1781

No files matched your search

@@ -207,6 +207,8 @@ const prepareSide = async (
if (remaining <= 0)
throw new RangeError("Replay module bytes exceed the aggregate limit");
const source = await host.readSource(module.path, remaining);
if (source.bytes.byteLength > remaining)
throw new RangeError("Replay module bytes exceed the aggregate limit");
totalBytes += source.bytes.byteLength;
loaded.push({ module, source });
}