mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
test(node): get test-assert.js working (#15698)
Co-authored-by: Don Isaac <don@bun.sh> Co-authored-by: DonIsaac <DonIsaac@users.noreply.github.com>
This commit is contained in:
@@ -994,6 +994,7 @@ pub const String = extern struct {
|
||||
return ZigString.Slice.empty;
|
||||
}
|
||||
|
||||
/// use `byteSlice` to get a `[]const u8`.
|
||||
pub fn toSlice(this: String, allocator: std.mem.Allocator) SliceWithUnderlyingString {
|
||||
return SliceWithUnderlyingString{
|
||||
.utf8 = this.toUTF8(allocator),
|
||||
|
||||
Reference in New Issue
Block a user