From ee1e0b7e732f480e78474e5b679af6f5c9e32a5b Mon Sep 17 00:00:00 2001 From: Keyan Zhang <2268452+keyz@users.noreply.github.com> Date: Wed, 11 Nov 2026 20:13:26 -0800 Subject: [PATCH] Avoid compiling a WASM adapter for native free --- src/helpers.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/helpers.ts b/src/helpers.ts index 02db097..4061c36 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -38,9 +38,7 @@ export function track( export function init(module: HarfBuzzModule) { Module = module; exports = Module.wasmExports; - freeFuncPtr = Module.addFunction((ptr: number) => { - exports.free(ptr); - }, "vi"); + freeFuncPtr = Module.addFunction(exports.free, "vi"); } export function hb_tag(s: string): number {