JS: Expand test case

This commit is contained in:
Asger F
2024-03-08 10:34:39 +01:00
parent 13e3a5158e
commit fc5b9e2796

View File

@@ -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