JS: Include accessor-calls in CallGraph.ql

This commit is contained in:
Asger Feldthaus
2021-03-20 11:37:15 +00:00
parent f4a476ea4e
commit a54e810804

View File

@@ -10,6 +10,7 @@
import javascript
from DataFlow::InvokeNode invoke, Function f
where invoke.getACallee() = f
select invoke, "Call to $@", f, f.describe()
from DataFlow::Node invoke, Function f, string kind
where invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call" or
invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
select invoke, kind + " to $@", f, f.describe()