JS: Further restrict receiver type inference

This commit is contained in:
Asger F
2019-09-10 14:08:30 +01:00
parent e724f92ee8
commit 71763af2d5

View File

@@ -706,7 +706,8 @@ class ClassNode extends DataFlow::SourceNode {
result = getAClassReference(t.continue()).getAnInstantiation()
or
t.start() and
result.(AnalyzedNode).getAValue() = getAbstractInstanceValue()
result.(AnalyzedNode).getAValue() = getAbstractInstanceValue() and
not result = any(DataFlow::ClassNode cls).getAReceiverNode()
or
t.start() and
result = getAReceiverNode()