mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-10 01:56:15 +08:00
Regenerate the IR field readers and fix the shard tests
This commit is contained in:
@@ -167,6 +167,7 @@ export function eachStringField(
|
||||
}
|
||||
case "dynCheck": {
|
||||
visit(node.kind, "kind");
|
||||
if (typeof node.inferredSite === "string") visit(node.inferredSite, "inferredSite");
|
||||
return;
|
||||
}
|
||||
case "dynDestrCheck": {
|
||||
@@ -866,6 +867,9 @@ export function walkExprFields(node: IrExpr, walker: IrFieldWalker, skipType: bo
|
||||
case "dynCheck": {
|
||||
walker.string(node.kind);
|
||||
walkExprFields(node.value, walker, skipType);
|
||||
if (node.inferredSite !== undefined && node.inferredSite !== null) {
|
||||
walker.string(node.inferredSite);
|
||||
}
|
||||
if (!skipType) {
|
||||
walkTypeFields(node.type, walker, skipType);
|
||||
}
|
||||
|
||||
@@ -119,8 +119,8 @@ const OVERLAY_KNOWN: Record<string, Known> = {
|
||||
// `--help` reaches an unsupported operation in both builds; with the
|
||||
// overlay it fails at a checked conversion of an option value first
|
||||
// (results/design-shape-inference/NOTES.md, open item).
|
||||
"commander-calc": { run: "expected number at $, got undefined", argvs: [["--help"]] },
|
||||
"commander-calc-async": { run: "expected number at $, got undefined", argvs: [["--help"]] },
|
||||
"commander-calc": { run: "expected boolean at $, got undefined", argvs: [["--help"]] },
|
||||
"commander-calc-async": { run: "expected boolean at $, got undefined", argvs: [["--help"]] },
|
||||
};
|
||||
|
||||
/** Per-case timeouts past the default 120 s: the undici cases compile the
|
||||
|
||||
Reference in New Issue
Block a user