mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
Pin the diagnostics corpus to --tier=static-only
Its programs pin today's refusals; localized failure turns several of them into checked dynamic slots in the default mode. Under static-only every snapshot stays byte-identical, which is the stage's proof that the switch restores the refusals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6a2c9eca21
commit
cd5607493e
@@ -39,7 +39,14 @@ describe(`diagnostics corpus (${files.length} programs)`, () => {
|
||||
if (name.startsWith("checker-panic-")) process.env["SCRIPTC_CHECKER"] = "tsgo";
|
||||
let result: Awaited<ReturnType<typeof compile>>;
|
||||
try {
|
||||
result = await compile(file, { outPath: join(outDir, "never"), outDir });
|
||||
// --tier=static-only: these programs pin today's refusals, which
|
||||
// localized failure otherwise turns into checked dynamic slots
|
||||
// (the snapshots double as its proof that static-only keeps them).
|
||||
result = await compile(file, {
|
||||
outPath: join(outDir, "never"),
|
||||
outDir,
|
||||
tier: "static-only",
|
||||
});
|
||||
} finally {
|
||||
if (checker === undefined) delete process.env["SCRIPTC_CHECKER"];
|
||||
else process.env["SCRIPTC_CHECKER"] = checker;
|
||||
|
||||
Reference in New Issue
Block a user