Compare commits

...

2 Commits

Author SHA1 Message Date
Kaoru0822 7f348657e6 test(javascript): describe the parameter's provenance without claiming shadowing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:09:25 +00:00
Kaoru0822 fd768524d8 test(javascript): expect unknown provenance for a shadowing parameter
c7a890d12 deliberately keeps parameter provenance unknown ("Parameter
provenance depends on caller arguments.") instead of the previous
implicit local fallback, but the structure test still expected the
shadowing `ipcRenderer` parameter to be local, so it fails on main and
in every PR's domain shard. The test's purpose, that the parameter does
not inherit the module alias it shadows, is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 08:51:21 +00:00
1 changed files with 4 additions and 2 deletions

View File

@ -70,11 +70,13 @@ describe("JavaScript semantic analysis: structure 1", () => {
importedPath: [],
resolutionMode: "require",
});
// This parameter has no known module origins; its provenance depends
// on caller arguments.
const shadow = onlyBinding(ir, "ipcRenderer");
expect(shadow.provenance).toEqual({
status: "local",
status: "unknown",
origins: [],
reason: null,
reason: "Parameter provenance depends on caller arguments.",
});
const shadowReference = ir.references.find(
({ name, bindingId, role }) =>