mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
12 lines
207 B
JavaScript
12 lines
207 B
JavaScript
test("garbage collection of a deeply-nested object graph", () => {
|
|
let root = {};
|
|
let o = root;
|
|
|
|
for (let i = 0; i < 200_000; ++i) {
|
|
o.next = {};
|
|
o = o.next;
|
|
}
|
|
|
|
gc();
|
|
});
|