File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
javascript/ql/test/tutorials/Introducing the JavaScript libraries Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ query predicate test_query12(MethodCallExpr send) {
4
4
exists ( SimpleParameter res , DataFlow:: Node resNode |
5
5
res .getName ( ) = "res" and
6
6
resNode = DataFlow:: parameterNode ( res ) and
7
- resNode .getASuccessor ( ) = DataFlow:: valueNode ( send .getReceiver ( ) ) and
7
+ resNode .getASuccessor + ( ) = DataFlow:: valueNode ( send .getReceiver ( ) ) and
8
8
send .getMethodName ( ) = "send"
9
9
|
10
10
any ( )
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ test_query11
21
21
| tst.js:31:18:31:18 | x | Dead store of local variable. |
22
22
| tst.js:38:7:38:23 | password = "blah" | Dead store of local variable. |
23
23
test_query12
24
+ | tst.js:42:3:42:12 | res.send() |
24
25
test_query20
25
26
test_query3
26
27
| tst.js:27:1:27:4 | <!-- | Do not use HTML comments. |
Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ var j, j;
37
37
function foo ( ) {
38
38
var password = "blah" ;
39
39
}
40
+
41
+ function m ( res ) {
42
+ res . send ( )
43
+ }
You can’t perform that action at this time.
0 commit comments