Improve cleanup() algorithm

This commit is contained in:
Aaron Smith 2023-08-15 17:54:54 +01:00
parent 154cf77df6
commit bf1271de23
3 changed files with 75 additions and 32 deletions

View file

@ -529,6 +529,14 @@ TEST("cleanup()", function()
do
stateA = nil :: any
gc()
vide.step(0)
end
CHECK(objA.cleaned == 2)
CHECK(objB.cleaned == 1)
do
stateB = nil :: any
gc()
vide.step(0)