mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
JS: Expand test case
This commit is contained in:
@@ -12,11 +12,16 @@ function store(x) {
|
||||
function loadStore(x) {
|
||||
return { storeProp: x.loadProp };
|
||||
}
|
||||
function loadStore2(x) {
|
||||
let mid = x.loadProp;
|
||||
return { storeProp: mid };
|
||||
}
|
||||
|
||||
identity({});
|
||||
load({});
|
||||
store({});
|
||||
loadStore({});
|
||||
loadStore2({});
|
||||
|
||||
const obj = {}; // name: obj
|
||||
|
||||
@@ -31,3 +36,6 @@ x.storeProp; // track: obj
|
||||
|
||||
x = loadStore({ loadProp: obj });
|
||||
x.storeProp; // track: obj
|
||||
|
||||
x = loadStore2({ loadProp: obj });
|
||||
x.storeProp; // track: obj
|
||||
|
||||
Reference in New Issue
Block a user