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>
This commit is contained in:
parent
c02fb0ea80
commit
fd768524d8
|
|
@ -70,11 +70,13 @@ describe("JavaScript semantic analysis: structure 1", () => {
|
|||
importedPath: [],
|
||||
resolutionMode: "require",
|
||||
});
|
||||
// A shadowing parameter never inherits the module alias it hides; its
|
||||
// own 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 }) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue