Skip to content

Commit fc5b9e2

Browse files
committed
JS: Expand test case
1 parent 13e3a51 commit fc5b9e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

javascript/ql/test/library-tests/TypeTracking/summarize.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ function store(x) {
1212
function loadStore(x) {
1313
return { storeProp: x.loadProp };
1414
}
15+
function loadStore2(x) {
16+
let mid = x.loadProp;
17+
return { storeProp: mid };
18+
}
1519

1620
identity({});
1721
load({});
1822
store({});
1923
loadStore({});
24+
loadStore2({});
2025

2126
const obj = {}; // name: obj
2227

@@ -31,3 +36,6 @@ x.storeProp; // track: obj
3136

3237
x = loadStore({ loadProp: obj });
3338
x.storeProp; // track: obj
39+
40+
x = loadStore2({ loadProp: obj });
41+
x.storeProp; // track: obj

0 commit comments

Comments
 (0)