Qualify optimistic tree reparenting with authoritative cycle rejection

This commit is contained in:
Timothy J. Aveni
2026-09-20 22:25:11 -07:00
parent c0669d2ed8
commit d80464d285
5 changed files with 71 additions and 0 deletions
+5
View File
@@ -89,6 +89,11 @@ void negative;
);
const { asyncObjectPlan } = await import("./async-fixture.js");
const { treePlan } = await import("./tree-fixture.js");
const tree = await treePlan();
await mkdir("dist/portable-reader/tree", { recursive: true });
await writeFile("dist/portable-reader/tree/plan.json", JSON.stringify(tree));
await writeFile("dist/portable-reader/tree/kernel.json", JSON.stringify(compileKernelProgram(tree)));
const { compile: compileAcceptance } = await import("./acceptance-fixture.js");
const acceptance = compileAcceptance();
if (!acceptance.ok) throw Error(JSON.stringify(acceptance.diagnostics));