From 62d914e63a3ebdfd652c1202cd0ef584f10d049e Mon Sep 17 00:00:00 2001 From: Carl Woffenden Date: Wed, 11 Dec 2024 12:31:22 +0100 Subject: [PATCH 1/3] Added missing module API --- tools/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/link.py b/tools/link.py index d008759220c09..ede899d2c9b83 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 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 From 1ff6cb1fd4e129706c476bae525425fa871f2d18 Mon Sep 17 00:00:00 2001 From: Carl Woffenden Date: Wed, 11 Dec 2024 23:07:24 +0100 Subject: [PATCH 2/3] =?UTF-8?q?Something=20trivial=20to=20rerun=20the=20CI?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/link.py b/tools/link.py index ede899d2c9b83..10f640d8b5a50 100644 --- a/tools/link.py +++ b/tools/link.py @@ -1403,7 +1403,7 @@ 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 the Audio Worklet: + # The following symbols need exposing to load the audio worklet: settings.INCOMING_MODULE_JS_API += ['instantiateWasm', 'wasm', 'wasmMemory'] if settings.FORCE_FILESYSTEM and not settings.MINIMAL_RUNTIME: From e27f1dbe03f0ecd3e5af019e1fbb8a3413082075 Mon Sep 17 00:00:00 2001 From: Carl Woffenden Date: Thu, 12 Dec 2024 15:22:54 +0100 Subject: [PATCH 3/3] Something else trivial to re-run the CI Random timeouts are causing tests to fail. --- tools/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/link.py b/tools/link.py index 10f640d8b5a50..76b6e521bb8d4 100644 --- a/tools/link.py +++ b/tools/link.py @@ -1403,7 +1403,7 @@ 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 the audio worklet: + # 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: