Skip to content

Commit 2049f6e

Browse files
Napalysasgerf
andcommitted
Update Nodes.qll
Applied suggestions Co-Authored-By: Asger F <316427+asgerf@users.noreply.github.com>
1 parent 6a284ee commit 2049f6e

File tree

1 file changed

+3
-2
lines changed
  • javascript/ql/lib/semmle/javascript/dataflow

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,11 +1242,12 @@ module ClassNode {
12421242
*/
12431243
class FunctionStyleClass extends Range, DataFlow::ValueNode {
12441244
override AST::ValueNode astNode;
1245-
AbstractFunction function;
1245+
AbstractCallable function;
12461246

12471247
FunctionStyleClass() {
12481248
// ES6 class case
1249-
astNode instanceof ClassDefinition
1249+
astNode instanceof ClassDefinition and
1250+
function.(AbstractClass).getClass() = astNode
12501251
or
12511252
// Function-style class case
12521253
astNode instanceof Function and

0 commit comments

Comments
 (0)