Skip to content

Commit cd39092

Browse files
committed
JS: Bugfix in Array constructor summary
1 parent fe1bdf2 commit cd39092

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/lib/semmle/javascript/internal/flow_summaries

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ class ArrayConstructorSummary extends SummarizedCallable {
9696
ArrayConstructorSummary() { this = "Array constructor" }
9797

9898
override DataFlow::InvokeNode getACallSimple() {
99-
result = arrayConstructorRef().getAnInvocation()
99+
result = arrayConstructorRef().getAnInvocation() and
100+
result.getNumArgument() > 1
100101
}
101102

102103
override predicate propagatesFlow(string input, string output, boolean preservesValue) {

0 commit comments

Comments
 (0)