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 28ead40 commit 9dbf7d1Copy full SHA for 9dbf7d1
javascript/ql/lib/semmle/javascript/Arrays.qll
@@ -505,7 +505,7 @@ private module ArrayLibraries {
505
override predicate step(DataFlow::Node obj, DataFlow::Node element) {
506
exists(DataFlow::MethodCallNode call |
507
call.getMethodName() = ["findLast", "find", "findLastIndex"] and
508
- obj = call.getReceiver().getALocalSource() and
+ obj = call.getReceiver() and
509
element = call.getCallback(0).getParameter(0)
510
)
511
}
0 commit comments