diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-21 21:19:25 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-21 21:19:25 -0400 |
| commit | f10714830fd8a65129d261df3436b885cee871cd (patch) | |
| tree | acbbfcaf3f83d73c6343be1d03d9fcd69c3fb3a5 /pit/src/runtime/gc.c | |
| parent | a5e153d8558a43fbdc78f5b9fdaff426feea4654 (diff) | |
pit: Improve backtraces
Diffstat (limited to 'pit/src/runtime/gc.c')
| -rw-r--r-- | pit/src/runtime/gc.c | 6 |
1 files changed, 2 insertions, 4 deletions
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: |
