We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0936cda commit f0886fdCopy full SHA for f0886fd
javascript/ql/src/semmle/javascript/dataflow/internal/FlowSteps.qll
@@ -35,7 +35,7 @@ predicate calls(DataFlow::InvokeNode invk, Function f) {
35
private predicate partiallyCalls(DataFlow::AdditionalPartialInvokeNode invk, DataFlow::AnalyzedNode callback, Function f) {
36
invk.isPartialArgument(callback, _, _) and
37
exists (AbstractFunction callee | callee = callback.getAValue() |
38
- if invk.isIndefinite("global") then
+ if callback.getAValue().isIndefinite("global") then
39
(f = callee.getFunction() and f.getFile() = invk.getFile())
40
else
41
f = callee.getFunction()
0 commit comments