Skip to content

Commit 1b0f8aa

Browse files
committed
JS: removed unnecessary findlast module import
1 parent 72a69cf commit 1b0f8aa

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
category: minorAnalysis
33
---
4-
* Added pre call graph step for `Array.prototype.findLast`
4+
* Added taint-steps for `Array.prototype.findLast`
5+
* Added taint-steps for `Array.prototype.findLastIndex`

javascript/ql/lib/semmle/javascript/Arrays.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,7 @@ private module ArrayLibraries {
390390
result.(DataFlow::MethodCallNode).getMethodName() in ["find", "findLast"] and
391391
array = result.getReceiver()
392392
or
393-
result =
394-
DataFlow::moduleImport([
395-
"array.prototype.find", "array-find", "array.prototype.findLast", "array-find-last"
396-
]).getACall() and
393+
result = DataFlow::moduleImport(["array.prototype.find", "array-find"]).getACall() and
397394
array = result.getArgument(0)
398395
}
399396

0 commit comments

Comments
 (0)