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 4ca3ac5 commit 5ab595dCopy full SHA for 5ab595d
javascript/ql/test/library-tests/RecursionPrevention/SourceNodeFlowsTo.ql
@@ -4,16 +4,13 @@
4
* This tests adds a negative dependency `flowsTo --!--> SourceNode`
5
* so that the undesired edge `SourceNode --> flowsTo` completes a negative cycle.
6
*/
7
+
8
import javascript
9
10
class BadSourceNode extends DataFlow::SourceNode {
- BadSourceNode() {
11
- this.(DataFlow::PropRead).getPropertyName() = "foo"
12
- }
+ BadSourceNode() { this.(DataFlow::PropRead).getPropertyName() = "foo" }
13
14
- override predicate flowsTo(DataFlow::Node node) {
15
- not node instanceof DataFlow::SourceNode
16
+ override predicate flowsTo(DataFlow::Node node) { not node instanceof DataFlow::SourceNode }
17
}
18
19
select "Success"
0 commit comments