Qualify optimistic tree reparenting with authoritative cycle rejection
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user