Skip to content

Commit 37ccfd0

Browse files
committed
JS: Resolve static calls using type tracking
1 parent 298aa92 commit 37ccfd0

File tree

1 file changed

+3
-0
lines changed
  • javascript/ql/src/semmle/javascript/dataflow/internal

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ private module CachedSteps {
122122
exists(DataFlow::ClassNode cls, string name |
123123
callResolvesToMember(invk, cls, name) and
124124
f = cls.getInstanceMethod(name).getFunction()
125+
or
126+
invk = cls.getAClassReference().getAMethodCall(name) and
127+
f = cls.getStaticMethod(name).getFunction()
125128
)
126129
}
127130

0 commit comments

Comments
 (0)