JS: PropWrite is not a SourceNode

This commit is contained in:
Asger Feldthaus
2022-04-07 12:36:48 +02:00
parent c9db6201ef
commit 37a76f4441
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ private module CachedSteps {
* Holds if `invk` may invoke `f`.
*/
cached
predicate calls(DataFlow::SourceNode invk, Function f) {
predicate calls(DataFlow::Node invk, Function f) {
f = invk.(DataFlow::InvokeNode).getACallee(0)
or
f = invk.(DataFlow::PropRef).getAnAccessorCallee().getFunction()

View File

@@ -25,7 +25,7 @@ class AnnotatedFunction extends Function {
}
/** A function annotated with `calls:NAME` */
class AnnotatedCall extends DataFlow::SourceNode {
class AnnotatedCall extends DataFlow::Node {
string calls;
string kind;