mirror of
https://github.com/morluto/rea.git
synced 2026-11-07 05:56:19 -10:00
fix(browser): clarify shared source-map output budget (#9154)
* fix(browser): clarify shared source-map output budget * test(browser): assert source-map budget facts independently * test(process): align symlink fixture with filesystem checkpoints * test(frida): assert the CLI spawn Evidence contract * test(mcp): use an unsupported analysis-view parent * test(browser): separate source-location line bounds from parity
This commit is contained in:
1 parent
0fc35a098a
commit
128f7c330f
2 files changed
+6
-1
No files matched your search
@@ -666,7 +666,7 @@ const normalizeSourceMap = (
|
||||
return emptySourceMapItem(
|
||||
request,
|
||||
"fetch_failed",
|
||||
"Source-map response text exceeds the 32 MiB source-map output budget; JSON parsing and source-map decoding were not attempted.",
|
||||
"JSON-escaped response text and map metadata would exceed the remaining space in the shared 32 MiB source-map output budget; JSON parsing and source-map decoding were not attempted.",
|
||||
fetchedUrl,
|
||||
responseIdentity,
|
||||
);
|
||||
|
||||
@@ -193,6 +193,11 @@ it("refuses oversized text before JSON interpretation while retaining body ident
|
||||
{ status: "included", artifact: { text: valid }, mappings: [{}] },
|
||||
],
|
||||
});
|
||||
const limitation = result.value.items[0]?.limitation;
|
||||
expect(limitation).toMatch(/JSON[- ]escap/i);
|
||||
expect(limitation).toMatch(/metadata/i);
|
||||
expect(limitation).toMatch(/shared/i);
|
||||
expect(limitation).toMatch(/32\s*MiB/i);
|
||||
expect(Buffer.byteLength(JSON.stringify(result.value))).toBeLessThanOrEqual(
|
||||
32 * 1024 * 1024,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user