mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
get node:fs tests passing part 1 (#16270)
This commit is contained in:
@@ -1002,7 +1002,7 @@ pub const String = extern struct {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn toThreadSafeSlice(this: *String, allocator: std.mem.Allocator) SliceWithUnderlyingString {
|
||||
pub fn toThreadSafeSlice(this: *const String, allocator: std.mem.Allocator) SliceWithUnderlyingString {
|
||||
if (this.tag == .WTFStringImpl) {
|
||||
if (!this.value.WTFStringImpl.isThreadSafe()) {
|
||||
const slice = this.value.WTFStringImpl.toUTF8WithoutRef(allocator);
|
||||
|
||||
Reference in New Issue
Block a user