We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1bdf2 commit cd39092Copy full SHA for cd39092
javascript/ql/lib/semmle/javascript/internal/flow_summaries/Arrays.qll
@@ -96,7 +96,8 @@ class ArrayConstructorSummary extends SummarizedCallable {
96
ArrayConstructorSummary() { this = "Array constructor" }
97
98
override DataFlow::InvokeNode getACallSimple() {
99
- result = arrayConstructorRef().getAnInvocation()
+ result = arrayConstructorRef().getAnInvocation() and
100
+ result.getNumArgument() > 1
101
}
102
103
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
0 commit comments