mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user