mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Update javascript/ql/lib/semmle/javascript/dataflow/internal/CallGraphs.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -250,7 +250,7 @@ module CallGraph {
|
||||
result = node.(DataFlow::ObjectLiteralNode).getPropertySetter(_)
|
||||
) and
|
||||
not node.getTopLevel().isExterns() and
|
||||
// Do not track instance methods on classes
|
||||
// Ignore writes to `this` inside a constructor, since this is already handled by instance method tracking
|
||||
not exists(DataFlow::ClassNode cls |
|
||||
node = cls.getConstructor().getReceiver()
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user