We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a284ee commit 2049f6eCopy full SHA for 2049f6e
javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll
@@ -1242,11 +1242,12 @@ module ClassNode {
1242
*/
1243
class FunctionStyleClass extends Range, DataFlow::ValueNode {
1244
override AST::ValueNode astNode;
1245
- AbstractFunction function;
+ AbstractCallable function;
1246
1247
FunctionStyleClass() {
1248
// ES6 class case
1249
- astNode instanceof ClassDefinition
+ astNode instanceof ClassDefinition and
1250
+ function.(AbstractClass).getClass() = astNode
1251
or
1252
// Function-style class case
1253
astNode instanceof Function and
0 commit comments