mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
JS: fix indefinite check on callback
This commit is contained in:
@@ -35,7 +35,7 @@ predicate calls(DataFlow::InvokeNode invk, Function f) {
|
||||
private predicate partiallyCalls(DataFlow::AdditionalPartialInvokeNode invk, DataFlow::AnalyzedNode callback, Function f) {
|
||||
invk.isPartialArgument(callback, _, _) and
|
||||
exists (AbstractFunction callee | callee = callback.getAValue() |
|
||||
if invk.isIndefinite("global") then
|
||||
if callback.getAValue().isIndefinite("global") then
|
||||
(f = callee.getFunction() and f.getFile() = invk.getFile())
|
||||
else
|
||||
f = callee.getFunction()
|
||||
|
||||
Reference in New Issue
Block a user