mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 03:15:54 +00:00
fix(javascript): require complete receiver ownership proofs
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user