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

@@ -63,7 +63,7 @@ export const createSemanticOpaqueGlobalObserver = (
let invocationSite: t.Node | undefined;
const interop = createSemanticModuleInterop(state, {
intrinsicPath: (node) => {
const paths = ambientPaths(node, invocationSite);
const paths = ambientPaths(node, invocationSite).paths;
const path = paths.find((path) => path[1] === "eval") ?? paths[0];
if (path?.[0] !== "global" || path.some((key) => key === null))
return undefined;