Skip to content

Commit 4043765

Browse files
committed
JS: Avoid ambiguity in an inline CG annotation
1 parent a61d42e commit 4043765

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

javascript/ql/test/library-tests/CallGraphs/AnnotatedTest/Test.expected

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
spuriousCallee
2-
| accessors.js:54:1:54:7 | new D() | accessors.js:32:9:32:8 | () {} | -1 | calls |
32
missingCallee
43
| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
54
| constructor-field.ts:71:1:71:11 | bf3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
@@ -13,4 +12,4 @@ accessorCall
1312
| accessors.js:44:1:44:9 | new D().f | accessors.js:37:8:37:13 | (x) {} |
1413
| accessors.js:48:1:48:5 | obj.f | accessors.js:5:8:5:12 | () {} |
1514
| accessors.js:51:1:51:3 | C.f | accessors.js:19:15:19:19 | () {} |
16-
| accessors.js:54:1:54:9 | new D().f | accessors.js:34:8:34:12 | () {} |
15+
| accessors.js:55:1:55:3 | d.f | accessors.js:34:8:34:12 | () {} |

javascript/ql/test/library-tests/CallGraphs/AnnotatedTest/accessors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ obj.f();
5050
/** calls:NONE */
5151
C.f();
5252

53+
const d = new D();
5354
/** calls:NONE */
54-
new D().f();
55+
d.f();

0 commit comments

Comments
 (0)