Files
scriptc/tests/fixtures/self-hosting/validate.ts
Chris Tate 4070ef701c fix(compiler): unblock self-hosting analysis and tuple construction (#488)
* fix(compiler): unblock self-hosting analysis and tuple construction

- Bound type diagnostics to handle deeply nested and shared compiler types.
- Compile fixed tuple spreads and preserve const tuple inference under satisfies.
- Add native compiler-component and differential regression coverage.

* fix(tests): record tuple spread frontend parity baseline

- Record module order and preflight diagnostics for the new tuple spread regression fixture.
2026-09-27 10:29:10 -05:00

8 lines
392 B
TypeScript

import { readFileSync } from "node:fs";
import type { IrModule } from "../../../packages/compiler/src/ir/ir.js";
import { validateModule } from "../../../packages/compiler/src/ir/validate.js";
// Probe validation independently of the serializer's reviver boundary.
const mod = JSON.parse(readFileSync(process.argv[2]!, "utf8")) as IrModule;
console.log(JSON.stringify(validateModule(mod)));