Skip to content

Commit 37a76f4

Browse files
committed
JS: PropWrite is not a SourceNode
1 parent c9db620 commit 37a76f4

File tree

2 files changed

+2
-2
lines changed
  • javascript/ql
    • lib/semmle/javascript/dataflow/internal
    • test/library-tests/CallGraphs/AnnotatedTest

2 files changed

+2
-2
lines changed

javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSteps.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private module CachedSteps {
139139
* Holds if `invk` may invoke `f`.
140140
*/
141141
cached
142-
predicate calls(DataFlow::SourceNode invk, Function f) {
142+
predicate calls(DataFlow::Node invk, Function f) {
143143
f = invk.(DataFlow::InvokeNode).getACallee(0)
144144
or
145145
f = invk.(DataFlow::PropRef).getAnAccessorCallee().getFunction()

javascript/ql/test/library-tests/CallGraphs/AnnotatedTest/Test.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AnnotatedFunction extends Function {
2525
}
2626

2727
/** A function annotated with `calls:NAME` */
28-
class AnnotatedCall extends DataFlow::SourceNode {
28+
class AnnotatedCall extends DataFlow::Node {
2929
string calls;
3030
string kind;
3131

0 commit comments

Comments
 (0)