remove redundant check

This commit is contained in:
2026-02-14 16:49:16 -06:00
parent 5fe05c60d3
commit f2c4fa2f2b
6 changed files with 1459 additions and 1461 deletions

View File

@@ -1319,8 +1319,6 @@ JSValue gc_copy_value (JSContext *ctx, JSValue v, uint8_t *from_base, uint8_t *f
for (;;) {
void *ptr = JS_VALUE_GET_PTR (v);
if (is_ct_ptr (ctx, ptr)) return v;
if (!ptr_in_range (ptr, from_base, from_end)) return v;
objhdr_t *hdr_ptr = (objhdr_t *)ptr;