We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c430a36 + 3575fba commit 7fbbf7eCopy full SHA for 7fbbf7e
1 file changed
javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll
@@ -872,6 +872,7 @@ class ClassNode extends DataFlow::ValueNode, DataFlow::SourceNode {
872
or
873
// Function-style class case
874
astNode instanceof Function and
875
+ not astNode = any(ClassDefinition cls).getConstructor().getBody() and
876
function.getFunction() = astNode and
877
(
878
exists(getAFunctionValueWithPrototype(function))
0 commit comments