mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: Add access path alias test
This commit is contained in:
@@ -6,6 +6,9 @@ typeModel
|
||||
| (aliases).Alias1 | aliases | Member[AliasedClass] |
|
||||
| (aliases).Alias1.prototype | (aliases).Alias1 | Instance |
|
||||
| (aliases).Alias1.prototype.foo | (aliases).Alias1.prototype | Member[foo] |
|
||||
| (long-access-path).a.shortcut.d | long-access-path | Member[a].Member[b].Member[c].Member[d] |
|
||||
| (long-access-path).a.shortcut.d | long-access-path | Member[a].Member[shortcut].Member[d] |
|
||||
| (long-access-path).a.shortcut.d.e | (long-access-path).a.shortcut.d | Member[e] |
|
||||
| (reexport).func | reexport | Member[func] |
|
||||
| (return-this).FluentInterface | return-this | Member[FluentInterface] |
|
||||
| (return-this).FluentInterface.prototype | (return-this).FluentInterface | Instance |
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
export const a = {
|
||||
b: {
|
||||
c: {
|
||||
d: {
|
||||
e: function() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
a.shortcut = a.b.c;
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "long-access-path",
|
||||
"main": "long-access-path.js"
|
||||
}
|
||||
Reference in New Issue
Block a user