1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:55:06 +00:00
serenity/Base/home/anon/js/gc-strings.js
Andreas Kling 2106dafd62 LibJS: Delete fully-empty HeapBlocks after garbage collection
We now deallocate GC blocks when they are found to have no live cells
inside them.
2020-03-21 11:46:47 +01:00

8 lines
116 B
JavaScript

function foo() {
var a = [];
for (var i = 0; i < 4000; ++i) {
a.push("string" + i);
}
}
foo();