JS: Resolve static calls using type tracking

This commit is contained in:
Asger F
2019-07-06 22:29:37 +01:00
parent 298aa92814
commit 37ccfd0036

View File

@@ -122,6 +122,9 @@ private module CachedSteps {
exists(DataFlow::ClassNode cls, string name |
callResolvesToMember(invk, cls, name) and
f = cls.getInstanceMethod(name).getFunction()
or
invk = cls.getAClassReference().getAMethodCall(name) and
f = cls.getStaticMethod(name).getFunction()
)
}