fix(javascript): require complete receiver ownership proofs

This commit is contained in:
morluto committed 2026-10-24 08:22:14 +08:00
1 parent cc4f805541
commit 2496256cb7
5 files changed
+383 -311

No files matched your search

@@ -283,7 +283,7 @@ const visitSemanticReferenceEffectsAtSite = (
} else if (lookup.kind === "ambient" || lookup.kind === "uncertain-ambient") {
for (const node of state.ambientBindingWrites.get(root.name) ?? [])
if (!retain("ambient-write", node)) return metadata;
const ambientRoots = createAmbientPathResolver(state, false)(root);
const ambientRoots = createAmbientPathResolver(state, false)(root).paths;
for (const ambientRoot of ambientRoots) {
const selectedPath = [...ambientRoot, ...path];
for (const [kind, effects] of [