mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
JS: PropWrite is not a SourceNode
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user