We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f4faa commit 4d33407Copy full SHA for 4d33407
1 file changed
javascript/ql/src/semmle/javascript/dataflow/Nodes.qll
@@ -168,7 +168,13 @@ class InvokeNode extends DataFlow::SourceNode {
168
private ObjectLiteralNode getOptionsArgument(int i) { result.flowsTo(getArgument(i)) }
169
170
/** Gets an abstract value representing possible callees of this call site. */
171
- final AbstractValue getACalleeValue() { result = getCalleeNode().analyze().getAValue() }
+ final AbstractValue getACalleeValue() {
172
+ exists(DataFlow::Node callee, DataFlow::AnalyzedNode analyzed |
173
+ pragma[only_bind_into](callee) = getCalleeNode() and
174
+ pragma[only_bind_into](analyzed) = callee.analyze() and
175
+ pragma[only_bind_into](result) = analyzed.getAValue()
176
+ )
177
+ }
178
179
/**
180
* Gets a potential callee of this call site.
0 commit comments