add model for whatwg-fetch

This commit is contained in:
Erik Krogh Kristensen
2021-06-04 13:13:13 +02:00
parent 8d7f8a5bab
commit 46f90006c2
4 changed files with 19 additions and 1 deletions

View File

@@ -302,6 +302,8 @@ module ClientRequest {
exists(DataFlow::SourceNode fetch |
fetch = DataFlow::moduleImport(["node-fetch", "cross-fetch", "isomorphic-fetch"])
or
fetch = DataFlow::moduleMember("whatwg-fetch", "fetch")
or
fetch = DataFlow::globalVarRef("fetch") // https://fetch.spec.whatwg.org/#fetch-api
|
this = fetch.getACall() and