Skip to content

Commit 7d5c804

Browse files
committed
JS: Handle accessor-calls to static accessors
1 parent 37b3a6e commit 7d5c804

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ module CallGraph {
200200
or
201201
ref = getAnInstanceMemberAssignment(cls, name) and
202202
result = cls.getInstanceMember(name, DataFlow::MemberKind::setter())
203+
or
204+
ref = cls.getAClassReference().getAPropertyRead(name) and
205+
result = cls.getStaticMember(name, DataFlow::MemberKind::getter())
206+
or
207+
ref = cls.getAClassReference().getAPropertyWrite(name) and
208+
result = cls.getStaticMember(name, DataFlow::MemberKind::setter())
203209
)
204210
or
205211
exists(DataFlow::ObjectLiteralNode object, string name |

0 commit comments

Comments
 (0)