fix(javascript): own reference roles and invocation result identities

This commit is contained in:
morluto committed 2026-10-24 02:50:51 +08:00
1 parent 990d1de4d0
commit 965aff805d
8 files changed
+212 -72

No files matched your search

@@ -1438,7 +1438,11 @@ function* indexPrototypeUncertaintySteps(
parent.arguments.includes(node as t.Expression)
)
return;
if (t.isIdentifier(node) && semanticReferenceRole(node, parent) === null)
if (
t.isIdentifier(node) &&
semanticReferenceRole(node, parent, state.parentsByNode.get(parent)) ===
null
)
return;
taint(owner);
},