File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/semmle/javascript/dataflow
test/library-tests/Arrays Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ class ArrayConstructorInvokeNode extends DataFlow::InvokeNode {
587587}
588588
589589/**
590- * A data flow node corresponding to the creation or a new array, either through an array literal,
590+ * A data flow node corresponding to the creation or a new array, either through an array literal,
591591 * an invocation of the `Array` constructor, or the `Array.from` method.
592592 *
593593 *
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import javascript
33class ArrayFlowConfig extends DataFlow:: Configuration {
44 ArrayFlowConfig ( ) { this = "ArrayFlowConfig" }
55
6- override predicate isSource ( DataFlow:: Node source ) {
7- source .asExpr ( ) .getStringValue ( ) = "source"
8- }
6+ override predicate isSource ( DataFlow:: Node source ) { source .asExpr ( ) .getStringValue ( ) = "source" }
97
108 override predicate isSink ( DataFlow:: Node sink ) {
119 sink = any ( DataFlow:: CallNode call | call .getCalleeName ( ) = "sink" ) .getAnArgument ( )
@@ -14,4 +12,4 @@ class ArrayFlowConfig extends DataFlow::Configuration {
1412
1513from ArrayFlowConfig config , DataFlow:: Node src , DataFlow:: Node snk
1614where config .hasFlow ( src , snk )
17- select src , snk
15+ select src , snk
You can’t perform that action at this time.
0 commit comments