File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
javascript/ql/src/semmle/javascript/dataflow Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,13 @@ class InvokeNode extends DataFlow::SourceNode {
168
168
private ObjectLiteralNode getOptionsArgument ( int i ) { result .flowsTo ( getArgument ( i ) ) }
169
169
170
170
/** Gets an abstract value representing possible callees of this call site. */
171
- final AbstractValue getACalleeValue ( ) { result = getCalleeNode ( ) .analyze ( ) .getAValue ( ) }
171
+ 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
+ }
172
178
173
179
/**
174
180
* Gets a potential callee of this call site.
You can’t perform that action at this time.
0 commit comments