mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
JS: removed unnecessary findlast module import
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user