refined the GC. Now it calls object destructors

This commit is contained in:
cozis
2021-12-06 12:27:34 +01:00
parent dbcf50c71b
commit f751cbcbd5
7 changed files with 216 additions and 64 deletions
+2 -1
View File
@@ -683,7 +683,8 @@ static _Bool step(Runtime *runtime, Error *error)
assert(error->occurred == 0);
Object *obj = Object_Call(callable, argv, argc, runtime->heap, error);
// NOTE: Every local object reference is invalidated from here.
if(obj == NULL)
return 0;