Files
codeql/javascript/ql/test/tutorials/Introducing the JavaScript libraries/query12.ql
2018-08-02 17:53:23 +01:00

9 lines
295 B
Plaintext

import javascript
from SimpleParameter res, DataFlow::Node resNode, MethodCallExpr send
where res.getName() = "res" and
resNode = DataFlow::parameterNode(res) and
resNode.getASuccessor+() = DataFlow::valueNode(send.getReceiver()) and
send.getMethodName() = "send"
select send