mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
add support for error values in an axios client request
This commit is contained in:
@@ -268,6 +268,11 @@ module ClientRequest {
|
||||
responseType = getResponseType() and
|
||||
promise = true and
|
||||
result = this
|
||||
or
|
||||
responseType = getResponseType() and
|
||||
promise = false and
|
||||
result =
|
||||
getReturn().getPromisedError().getMember("response").getMember("data").getAnImmediateUse()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user