.
This commit is contained in:
@@ -246,6 +246,8 @@ function Heap:call_gc(roots)
|
|||||||
for _,v in ipairs(roots) do -- TODO - recursive, add support to array
|
for _,v in ipairs(roots) do -- TODO - recursive, add support to array
|
||||||
if v.type == 'string' and v.ref then
|
if v.type == 'string' and v.ref then
|
||||||
marked[v.ref] = true
|
marked[v.ref] = true
|
||||||
|
else
|
||||||
|
error("Can't handle this type on GC")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user