From f10714830fd8a65129d261df3436b885cee871cd Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 21 Jul 2026 21:19:25 -0400 Subject: pit: Improve backtraces --- pit/src/runtime/gc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pit/src/runtime/gc.c') diff --git a/pit/src/runtime/gc.c b/pit/src/runtime/gc.c index 671202d..0880592 100644 --- a/pit/src/runtime/gc.c +++ b/pit/src/runtime/gc.c @@ -76,10 +76,8 @@ void pit_gc(pit_runtime *rt) { break; } case PIT_VALUE_HEAVY_SORT_FUNC: - h->in.func.env = gc_copy_value(rt, h->in.func.env); - h->in.func.args = gc_copy_value(rt, h->in.func.args); - h->in.func.arg_rest_nm = gc_copy_value(rt, h->in.func.arg_rest_nm); - h->in.func.body = gc_copy_value(rt, h->in.func.body); + h->in.func.nm = gc_copy_value(rt, h->in.func.nm); + h->in.func.closure = gc_copy_value(rt, h->in.func.closure); break; case PIT_VALUE_HEAVY_SORT_NATIVEFUNC: break; case PIT_VALUE_HEAVY_SORT_NATIVEDATA: -- cgit v1.3.1