mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
* 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.
8 lines
392 B
TypeScript
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)));
|