mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
JS: Add test with unknown property name
This commit is contained in:
@@ -2,6 +2,7 @@ testFailures
|
||||
| pack11/index.ts:33:1:33:16 | | Unexpected result: method=(pack11).C3.privateField |
|
||||
| pack11/index.ts:33:18:33:69 | // $ me ... ng.name | Missing result:method=(pack11).C3.publicField.really.long.name |
|
||||
| pack11/index.ts:41:23:41:24 | | Unexpected result: alias=(pack11).C3.publicField.really.long.name==(pack11).C3.privateField |
|
||||
| pack11/index.ts:49:12:49:53 | // $ me ... .name.m | Missing result:method=(pack11).C4.really.long.name.m |
|
||||
ambiguousPreferredPredecessor
|
||||
| pack2/lib.js:8:22:8:34 | def moduleImport("pack2").getMember("exports").getMember("lib").getMember("LibClass").getMember("foo") |
|
||||
ambiguousSinkName
|
||||
|
||||
@@ -43,3 +43,17 @@ export class C3 {
|
||||
}
|
||||
}
|
||||
} // $ class=(pack11).C3 instance=(pack11).C3.prototype
|
||||
|
||||
|
||||
const f4 = {
|
||||
m() {} // $ method=(pack11).C4.really.long.name.m
|
||||
};
|
||||
|
||||
export const C4 = {
|
||||
[Math.random()]: f4,
|
||||
really: {
|
||||
long: {
|
||||
name: f4
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user