Skip to content

Commit

Permalink
fix: default use MMAP, avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 4, 2024
1 parent 6cc6a27 commit 384501c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Module {
this._ptr = ptr;
}

static async load(path: string, load_mode: ModuleLoadMode = ModuleLoadMode.MmapUseMlock): Promise<Module> {
static async load(path: string, load_mode: ModuleLoadMode = ModuleLoadMode.Mmap): Promise<Module> {
const ptr = await mod.moduleLoad(path, load_mode);
return new Module(ptr);
}
Expand Down

0 comments on commit 384501c

Please sign in to comment.