mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
JS: Add test case showing problem with chains going through internal classes
This commit is contained in:
@@ -48,6 +48,9 @@ typeModel
|
||||
| (subclass).D | subclass | Member[D] |
|
||||
| (subclass).D.prototype | (subclass).D | Instance |
|
||||
| (subclass).D.prototype.d | (subclass).D.prototype | Member[d] |
|
||||
| (subclass).ExposedMidSubClass | subclass | Member[ExposedMidSubClass] |
|
||||
| (subclass).ExposedMidSubClass.prototype | (subclass).ExposedMidSubClass | Instance |
|
||||
| (subclass).ExposedMidSubClass.prototype.m | (subclass).ExposedMidSubClass.prototype | Member[m] |
|
||||
| upstream-lib | (reexport).func | ReturnValue |
|
||||
| upstream-lib | reexport | Member[lib] |
|
||||
| upstream-lib.Type | (subclass).D.prototype | |
|
||||
|
||||
@@ -15,3 +15,11 @@ import * as upstream from "upstream-lib";
|
||||
export class D extends upstream.Type {
|
||||
d() {}
|
||||
}
|
||||
|
||||
// Test case where subclass chain goes through an internal class
|
||||
// TODO: we miss the subclass chain between ExposedMidSubClass and A
|
||||
class InternalMidClass extends A {}
|
||||
|
||||
export class ExposedMidSubClass extends InternalMidClass {
|
||||
m() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user