Skip to content

Commit 3cb500a

Browse files
committed
feat-fix: allow cf to be undefined
1 parent 5e18a3b commit 3cb500a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataflow/extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function resolveLinkToSideEffects(ast: NormalizedAst, graph: DataflowGraph) {
9696
continue;
9797
}
9898
/* this has to change whenever we add a new link to relations because we currently offer no abstraction for the type */
99-
const potentials = identifyLinkToLastCallRelation(s.id, cf.graph, graph, s.linkTo, knownCalls);
99+
const potentials = identifyLinkToLastCallRelation(s.id, cf?.graph, graph, s.linkTo, knownCalls);
100100
for(const pot of potentials) {
101101
graph.addEdge(s.id, pot, EdgeType.Reads);
102102
}

0 commit comments

Comments
 (0)