Skip to content

Commit 71763af

Browse files
committed
JS: Further restrict receiver type inference
1 parent e724f92 commit 71763af

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/src/semmle/javascript/dataflow

1 file changed

+2
-1
lines changed

javascript/ql/src/semmle/javascript/dataflow/Nodes.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ class ClassNode extends DataFlow::SourceNode {
706706
result = getAClassReference(t.continue()).getAnInstantiation()
707707
or
708708
t.start() and
709-
result.(AnalyzedNode).getAValue() = getAbstractInstanceValue()
709+
result.(AnalyzedNode).getAValue() = getAbstractInstanceValue() and
710+
not result = any(DataFlow::ClassNode cls).getAReceiverNode()
710711
or
711712
t.start() and
712713
result = getAReceiverNode()

0 commit comments

Comments
 (0)