Update javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Asger F
2022-04-07 10:56:11 +02:00
parent 1e96b1e559
commit 18dc39484d

View File

@@ -126,9 +126,7 @@ module API {
*/
pragma[inline]
DataFlow::Node getAValueReachableFromSource() {
exists(DataFlow::SourceNode src | Impl::use(this, src) |
Impl::trackUseNode(src).flowsTo(result)
)
Impl::trackUseNode(this.getASource()).flowsTo(result)
}
/**