diff --git a/tools/link.py b/tools/link.py index d008759220c09..76b6e521bb8d4 100644 --- a/tools/link.py +++ b/tools/link.py @@ -1403,6 +1403,8 @@ def phase_linker_setup(options, state, newargs): # noqa: C901, PLR0912, PLR0915 # MINIMAL_RUNTIME exports these manually, since this export mechanism is placed # in global scope that is not suitable for MINIMAL_RUNTIME loader. settings.EXPORTED_RUNTIME_METHODS += ['stackSave', 'stackAlloc', 'stackRestore', 'wasmTable'] + # The following symbols need exposing to load and bootstrap the audio worklet: + settings.INCOMING_MODULE_JS_API += ['instantiateWasm', 'wasm', 'wasmMemory'] if settings.FORCE_FILESYSTEM and not settings.MINIMAL_RUNTIME: # when the filesystem is forced, we export by default methods that filesystem usage