use getABoundCallbackParameter instead of getCallback and getParameter.

This commit is contained in:
Erik Krogh Kristensen
2020-09-29 10:12:46 +02:00
parent 6b9aea82ca
commit 52d94f6177

View File

@@ -396,11 +396,11 @@ module ClientRequest {
override DataFlow::Node getAResponseDataNode(string responseType, boolean promise) {
promise = false and
result = this.getCallback(this.getNumArgument() - 1).getParameter(1) and
result = this.getABoundCallbackParameter(this.getNumArgument() - 1, 1) and
responseType = "fetch.response"
or
promise = false and
result = this.getCallback(this.getNumArgument() - 1).getParameter(2) and
result = this.getABoundCallbackParameter(this.getNumArgument() - 1, 2) and
responseType = "json"
}
}