Skip to content

Commit

Permalink
JS: Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
asgerf committed Mar 26, 2024
1 parent a950de3 commit f2939bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 | () {} |
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit f2939bd

Please sign in to comment.