Skip to content

Commit fb2b5f9

Browse files
committed
Fix AUDIO_WORKLET + MODULARIZE
The change that was made back in emscripten-core#21775 means that its no longer OK to ignore the return value of the `MODULARIZE` constructor function. Fixes: emscripten-core#21908
1 parent 9ac0425 commit fb2b5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio_worklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class BootstrapMessages extends AudioWorkletProcessor {
161161
// MODULARIZE+AUDIO_WORKLET builds.
162162
if (globalThis.AudioWorkletModule) {
163163
// This populates the Module object with all the Wasm properties
164-
AudioWorkletModule(Module);
164+
globalThis.Module = await AudioWorkletModule(Module);
165165
// We have now instantiated the Module function, can discard it from
166166
// global scope
167167
delete globalThis.AudioWorkletModule;

0 commit comments

Comments
 (0)