From 384501cd495b266b7eab4273f7c1978e0586c709 Mon Sep 17 00:00:00 2001 From: Hans Date: Sat, 5 Oct 2024 03:32:34 +0800 Subject: [PATCH] fix: default use MMAP, avoid error --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 5cca946..90fc63f 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -134,7 +134,7 @@ class Module { this._ptr = ptr; } - static async load(path: string, load_mode: ModuleLoadMode = ModuleLoadMode.MmapUseMlock): Promise { + static async load(path: string, load_mode: ModuleLoadMode = ModuleLoadMode.Mmap): Promise { const ptr = await mod.moduleLoad(path, load_mode); return new Module(ptr); }