mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
* test(browser): verify native nested source-map coordinates Qualify valid compiler-produced nested index maps through actual owned Chrome and the built public analyze-web-bundle CLI. Preserve same-line and zero-column controls, physical UTF-16 mapping positions and the independently correct dedicated decoder control. No production or workflow changes. Signed-off-by: Rudy Celekli <[email protected]> * test(browser): retain native source-map failure receipts Serialize the already-created phase and proof fields for failed native source-map owners. Preserve all producer inputs, scenarios, commands and assertions; first native two-failure/two-control evidence remains unchanged. Signed-off-by: Rudy Celekli <[email protected]> * test(browser): preserve nested source-map boundary contracts Qualify ordinary maps, nested offsets, sibling clipping, parent gaps, empty sections and deeper composition against the actual browser fetcher. Compare the existing dedicated decoder only for its valid non-overlapping profile. Preserve the four frozen compiler/Chrome/public CLI scenarios. Signed-off-by: Rudy Celekli <[email protected]> * fix(browser): compose nested source-map column offsets Normalize indexed sections to absolute leaf offsets before upstream flattening. Apply enclosing column offsets only for same-line child sections and retain parent clipping boundaries for gaps and empty sections. Preserve raw map evidence, source identities, transport budgets and the dedicated decoder profile. Signed-off-by: Rudy Celekli <[email protected]> --------- Signed-off-by: Rudy Celekli <[email protected]>
19 lines
950 B
JavaScript
19 lines
950 B
JavaScript
#!/usr/bin/env node
|
|
import { access } from "node:fs/promises";
|
|
import { isAbsolute } from "node:path";
|
|
import { verifyBrowserSourceMap } from "./lib/browser-source-map-e2e.mjs";
|
|
import { verifyBrowserNestedSourceMaps } from "./lib/browser-nested-source-map-e2e.mjs";
|
|
import { createVerifierRun, completeVerifierRun } from "./lib/verifier-run.mjs";
|
|
const executable = process.env.REA_BROWSER_EXECUTABLE;
|
|
if (!executable || !isAbsolute(executable))
|
|
throw new Error(
|
|
"verify:browser:source-maps requires absolute REA_BROWSER_EXECUTABLE pointing to caller-supplied Chromium",
|
|
);
|
|
await access(executable);
|
|
const run = createVerifierRun();
|
|
const proof = await verifyBrowserSourceMap(executable, process.argv[2]);
|
|
const nested = await verifyBrowserNestedSourceMaps(executable, process.argv[2]);
|
|
process.stdout.write(
|
|
`${JSON.stringify({ ...proof, nested_source_maps: nested, verifier_run: await completeVerifierRun(run), verified: true })}\n`,
|
|
);
|