Skip to content

Commit 8bca664

Browse files
committed
JS: Add test showing lack of inclusion in PropertyName
1 parent cab8a40 commit 8bca664

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

javascript/ql/test/library-tests/TypeTracking2/summaries.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ function m4() {
4343
sink(fn({ p: obj }));
4444
sink(fn({ p: obj }).q); // $ track=m4.1
4545
}
46+
47+
function m5() {
48+
// Store and read to a property that isn't mentioned anywhere in the source code.
49+
const store = mkSummary("Argument[0]", "ReturnValue.Member[propOnlyMentionedInSummary]");
50+
const read = mkSummary("Argument[0].Member[propOnlyMentionedInSummary]", "ReturnValue");
51+
sink(read(store(source("m5.1")))); // $ MISSING: track=m5.1
52+
sink(read(source("m5.1")));
53+
sink(store(source("m5.1")));
54+
sink(store(read(source("m5.1"))));
55+
}

0 commit comments

Comments
 (0)