Merge pull request #4400 from max-schaefer/js/api-graph-classrefs

Approved by asgerf
This commit is contained in:
CodeQL CI
2020-10-05 03:12:23 -07:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -578,7 +578,11 @@ module API {
ref = DataFlow::moduleImport(m)
)
or
exists(DataFlow::ClassNode cls | nd = MkClassInstance(cls) | ref = cls.getAReceiverNode())
exists(DataFlow::ClassNode cls | nd = MkClassInstance(cls) |
ref = cls.getAReceiverNode()
or
ref = cls.(DataFlow::ClassNode::FunctionStyleClass).getAPrototypeReference()
)
or
nd = MkUse(ref)
or