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