mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
* Remove flag in a test * Get this test file to run in jest again * Fixes #9563 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -295,6 +295,10 @@ pub const String = extern struct {
|
||||
return this.tag == Tag.ZigString and this.value.ZigString.isGloballyAllocated();
|
||||
}
|
||||
|
||||
pub fn ensureHash(this: String) void {
|
||||
if (this.tag == .WTFStringImpl) this.value.WTFStringImpl.ensureHash();
|
||||
}
|
||||
|
||||
pub fn toOwnedSlice(this: String, allocator: std.mem.Allocator) ![]u8 {
|
||||
switch (this.tag) {
|
||||
.ZigString => return try this.value.ZigString.toOwnedSlice(allocator),
|
||||
|
||||
Reference in New Issue
Block a user