diff --git a/javascript/ql/test/tutorials/Introducing the JavaScript libraries/query12.qll b/javascript/ql/test/tutorials/Introducing the JavaScript libraries/query12.qll index 7f99c4e3674..d39a812e5bb 100644 --- a/javascript/ql/test/tutorials/Introducing the JavaScript libraries/query12.qll +++ b/javascript/ql/test/tutorials/Introducing the JavaScript libraries/query12.qll @@ -4,7 +4,7 @@ query predicate test_query12(MethodCallExpr send) { exists(SimpleParameter res, DataFlow::Node resNode | res.getName() = "res" and resNode = DataFlow::parameterNode(res) and - resNode.getASuccessor() = DataFlow::valueNode(send.getReceiver()) and + resNode.getASuccessor+() = DataFlow::valueNode(send.getReceiver()) and send.getMethodName() = "send" | any() diff --git a/javascript/ql/test/tutorials/Introducing the JavaScript libraries/tests.expected b/javascript/ql/test/tutorials/Introducing the JavaScript libraries/tests.expected index bbec34be602..1eb7f5897cc 100644 --- a/javascript/ql/test/tutorials/Introducing the JavaScript libraries/tests.expected +++ b/javascript/ql/test/tutorials/Introducing the JavaScript libraries/tests.expected @@ -21,6 +21,7 @@ test_query11 | tst.js:31:18:31:18 | x | Dead store of local variable. | | tst.js:38:7:38:23 | password = "blah" | Dead store of local variable. | test_query12 +| tst.js:42:3:42:12 | res.send() | test_query20 test_query3 | tst.js:27:1:27:4 |