diff --git a/mod.ts b/mod.ts index 2a5219a..9386d7b 100644 --- a/mod.ts +++ b/mod.ts @@ -151,6 +151,9 @@ export async function dlopen( options: FetchOptions, symbols: Const, ): Promise> { + if (Deno.dlopen === undefined) { + throw new Error("`--unstable-ffi` is required"); + } // deno-lint-ignore no-explicit-any return Deno.dlopen(await download(options), symbols as any); }