JS: removed unnecessary findlast module import

This commit is contained in:
Napalys
2024-11-19 08:26:03 +01:00
parent 72a69cfa17
commit 1b0f8aa657
2 changed files with 3 additions and 5 deletions

View File

@@ -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`

View File

@@ -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)
}