JS: Add test with unknown property name

This commit is contained in:
Asger F
2024-02-14 14:09:16 +01:00
parent 9838da5395
commit 3ff950660b
2 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}
}
}