JS: Add test case

This commit is contained in:
Asger F
2024-03-07 12:45:48 +01:00
parent a950de36a0
commit f2939bd05b
2 changed files with 20 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ spuriousCallee
missingCallee
| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
| constructor-field.ts:71:1:71:11 | bf3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
| implied-receiver.js:7:13:7:25 | this.member() | implied-receiver.js:17:22:19:1 | functio ... n 42;\\n} | -1 | calls |
badAnnotation
accessorCall
| accessors.js:12:1:12:5 | obj.f | accessors.js:5:8:5:12 | () {} |

View File

@@ -0,0 +1,19 @@
import 'dummy';
function fooFactoryFactory() {
return function fooFactory() {
return function foo() {
/** calls:F.member */
this.member();
}
}
}
function F() {
this.foo = fooFactoryFactory()();
}
/** name:F.member */
F.prototype.member = function() {
return 42;
};