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 {
587
587
}
588
588
589
589
/**
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,
591
591
* an invocation of the `Array` constructor, or the `Array.from` method.
592
592
*
593
593
*
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import javascript
3
3
class ArrayFlowConfig extends DataFlow:: Configuration {
4
4
ArrayFlowConfig ( ) { this = "ArrayFlowConfig" }
5
5
6
- override predicate isSource ( DataFlow:: Node source ) {
7
- source .asExpr ( ) .getStringValue ( ) = "source"
8
- }
6
+ override predicate isSource ( DataFlow:: Node source ) { source .asExpr ( ) .getStringValue ( ) = "source" }
9
7
10
8
override predicate isSink ( DataFlow:: Node sink ) {
11
9
sink = any ( DataFlow:: CallNode call | call .getCalleeName ( ) = "sink" ) .getAnArgument ( )
@@ -14,4 +12,4 @@ class ArrayFlowConfig extends DataFlow::Configuration {
14
12
15
13
from ArrayFlowConfig config , DataFlow:: Node src , DataFlow:: Node snk
16
14
where config .hasFlow ( src , snk )
17
- select src , snk
15
+ select src , snk
You can’t perform that action at this time.
0 commit comments