fix BUN-KHE (#20820)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Dylan Conway
2025-07-04 15:17:24 -07:00
committed by GitHub
parent eabbd5cbfb
commit 906b287e31

View File

@@ -66,7 +66,7 @@ pub fn append16(this: *StringBuilder, slice: []const u16, fallback_allocator: st
var list = std.ArrayList(u8).init(fallback_allocator);
var out = bun.strings.toUTF8ListWithTypeBun(&list, []const u16, slice, false) catch return null;
out.append(0) catch return null;
return list.items[0 .. list.items.len - 1 :0];
return out.items[0 .. out.items.len - 1 :0];
}
}