Skip to content

Commit 804a1a6

Browse files
committed
JS: Handle array of sorting criteria
1 parent 7486742 commit 804a1a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/LodashUnderscore.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ module LodashUnderscore {
278278

279279
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
280280
input = "Argument[0].ArrayElement" and
281-
output = ["Argument[1].Parameter[0]", "ReturnValue.ArrayElement"] and
281+
output =
282+
[
283+
"Argument[1].Parameter[0]", "Argument[1].ArrayElement.Parameter[0]",
284+
"ReturnValue.ArrayElement"
285+
] and
282286
preservesValue = true
283287
}
284288
}

0 commit comments

Comments
 (0)