mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
use getABoundCallbackParameter instead of getCallback and getParameter.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user