blob: a2785bdba7a14b27f3b9682043d6ee1ac2bfaf3b [file] [edit]
//@ runDefault("--slowPathAllocsBetweenGCs=13")
function foo(object) {
'hello' in object;
}
let handler = {
has(_, keyArg) {
keyArg in targetObject;
}
};
let targetObject = {};
let proxy = new Proxy(targetObject, handler);
for (let i = 0; i < testLoopCount; ++i) {
foo(proxy);
}
targetObject.hello = undefined;
gc();
for (let i = 0; i < testLoopCount; ++i) {
foo(proxy);
}
delete targetObject?.hello;
for (let i = 0; i < testLoopCount; ++i) {
foo(proxy);
}