Skip to content

Commit

Permalink
JS: removed unnecessary findlast module import
Browse files Browse the repository at this point in the history
  • Loading branch information
Napalys committed Nov 19, 2024
1 parent 72a69cf commit 1b0f8aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
category: minorAnalysis
---
* Added pre call graph step for `Array.prototype.findLast`
* Added taint-steps for `Array.prototype.findLast`
* Added taint-steps for `Array.prototype.findLastIndex`
5 changes: 1 addition & 4 deletions javascript/ql/lib/semmle/javascript/Arrays.qll
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,7 @@ private module ArrayLibraries {
result.(DataFlow::MethodCallNode).getMethodName() in ["find", "findLast"] and
array = result.getReceiver()
or
result =
DataFlow::moduleImport([
"array.prototype.find", "array-find", "array.prototype.findLast", "array-find-last"
]).getACall() and
result = DataFlow::moduleImport(["array.prototype.find", "array-find"]).getACall() and
array = result.getArgument(0)
}

Expand Down

0 comments on commit 1b0f8aa

Please sign in to comment.