Skip to content

Commit 52d94f6

Browse files
committed
use getABoundCallbackParameter instead of getCallback and getParameter.
1 parent 6b9aea8 commit 52d94f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/semmle/javascript/frameworks/ClientRequests.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ module ClientRequest {
396396

397397
override DataFlow::Node getAResponseDataNode(string responseType, boolean promise) {
398398
promise = false and
399-
result = this.getCallback(this.getNumArgument() - 1).getParameter(1) and
399+
result = this.getABoundCallbackParameter(this.getNumArgument() - 1, 1) and
400400
responseType = "fetch.response"
401401
or
402402
promise = false and
403-
result = this.getCallback(this.getNumArgument() - 1).getParameter(2) and
403+
result = this.getABoundCallbackParameter(this.getNumArgument() - 1, 2) and
404404
responseType = "json"
405405
}
406406
}

0 commit comments

Comments
 (0)