Skip to content

Commit 1aea351

Browse files
cwoffendenhedwigz
authored andcommitted
[AUDIO_WORKLET] Fix when compiling with STRICT (emscripten-core#23130)
Fix for emscripten-core#22971. This highlights that the AW tests weren't catching this or other issues in the parameterised tests. Running, for example: ``` test/runner browser.test_audio_worklet_strict ``` Passes, but if compiled with the same settings doesn't run.
1 parent 8852761 commit 1aea351

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/link.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,8 @@ def phase_linker_setup(options, state, newargs): # noqa: C901, PLR0912, PLR0915
14091409
# MINIMAL_RUNTIME exports these manually, since this export mechanism is placed
14101410
# in global scope that is not suitable for MINIMAL_RUNTIME loader.
14111411
settings.EXPORTED_RUNTIME_METHODS += ['stackSave', 'stackAlloc', 'stackRestore', 'wasmTable']
1412+
# The following symbols need exposing to load and bootstrap the audio worklet:
1413+
settings.INCOMING_MODULE_JS_API += ['instantiateWasm', 'wasm', 'wasmMemory']
14121414

14131415
if settings.FORCE_FILESYSTEM and not settings.MINIMAL_RUNTIME:
14141416
# when the filesystem is forced, we export by default methods that filesystem usage

0 commit comments

Comments
 (0)