mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 11:56:12 +00:00
fix: consolidate boundary ownership and cleanup failure paths (#477)
This commit is contained in:
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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user