Add more tests for Node FS

This commit is contained in:
Jarred Sumner
2022-04-02 05:14:13 -07:00
parent 51e5d3ea70
commit c2ed8d0240
4 changed files with 60 additions and 1 deletions

View File

@@ -51,9 +51,10 @@ pub const AllocatorConfiguration = struct {
long_running: bool = false,
};
pub const Mimalloc = @import("./allocators/mimalloc.zig");
pub inline fn mimalloc_cleanup(force: bool) void {
if (comptime use_mimalloc) {
const Mimalloc = @import("./allocators/mimalloc.zig");
Mimalloc.mi_collect(force);
}
}

View File

@@ -173,6 +173,7 @@ typedef struct {
uint32_t len;
uint32_t byte_len;
uint8_t cell_type;
uint64_t _value;
} Bun__ArrayBuffer;
#ifndef STRING_POINTER