Skip to content

Commit 3b8d3fa

Browse files
authored
[AUDIO_WORKLET] Fix when compiling with STRICT (#23130)
Fix for #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 48504a5 commit 3b8d3fa

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
@@ -1403,6 +1403,8 @@ def phase_linker_setup(options, state, newargs): # noqa: C901, PLR0912, PLR0915
14031403
# MINIMAL_RUNTIME exports these manually, since this export mechanism is placed
14041404
# in global scope that is not suitable for MINIMAL_RUNTIME loader.
14051405
settings.EXPORTED_RUNTIME_METHODS += ['stackSave', 'stackAlloc', 'stackRestore', 'wasmTable']
1406+
# The following symbols need exposing to load and bootstrap the audio worklet:
1407+
settings.INCOMING_MODULE_JS_API += ['instantiateWasm', 'wasm', 'wasmMemory']
14061408

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

0 commit comments

Comments
 (0)