Skip to content

Commit f6a8909

Browse files
authored
Merge pull request #19356 from Napalys/js/merge_classes
JS: Merge `ES6Class` to `FunctionStyleClass`
2 parents 40624b2 + 30694c1 commit f6a8909

File tree

6 files changed

+379
-241
lines changed

6 files changed

+379
-241
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Improved analysis for `ES6 classes` mixed with `function prototypes`, leading to more accurate call graph resolution.

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ module API {
12361236
exists(DataFlow::ClassNode cls | nd = MkClassInstance(cls) |
12371237
ref = cls.getAReceiverNode()
12381238
or
1239-
ref = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
1239+
ref = cls.(DataFlow::ClassNode).getAPrototypeReference()
12401240
)
12411241
or
12421242
nd = MkUse(ref)

0 commit comments

Comments
 (0)