get node:fs tests passing part 1 (#16270)

This commit is contained in:
chloe caruso
2025-01-14 20:53:02 -08:00
committed by GitHub
parent 4e193b0ebd
commit 834ad11d48
126 changed files with 5137 additions and 2415 deletions

View File

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