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 59df6c5 commit 6d82258Copy full SHA for 6d82258
javascript/ql/lib/semmle/javascript/ApiGraphs.qll
@@ -974,6 +974,11 @@ module API {
974
)
975
}
976
977
+ private DataFlow::Node getReceiverIfExplicit(DataFlow::CallNode call) {
978
+ result = call.getReceiver() and
979
+ not call instanceof DataFlow::MethodCallNode
980
+ }
981
+
982
/**
983
* Holds if `arg` is passed as the `i`th argument to a use of `base`, either by means of a
984
* full invocation, or in a partial function application.
@@ -986,7 +991,7 @@ module API {
986
991
|
987
992
arg = pred.getAnInvocation().getArgument(i - bound)
988
993
or
989
- arg = pred.getACall().getReceiver() and
994
+ arg = getReceiverIfExplicit(pred.getACall()) and
990
995
bound = 0 and
996
i = -1
997
0 commit comments