mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
JS: Further restrict receiver type inference
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user