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:
Don Isaac
2025-01-09 18:45:43 -06:00
committed by GitHub
parent 7bcd825d13
commit 0372ca5c0a
30 changed files with 4588 additions and 1304 deletions

View File

@@ -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),