Skip to content

Commit

Permalink
Fix AUDIO_WORKLET + MODULARIZE
Browse files Browse the repository at this point in the history
The change that was made back in #21775 means that its no longer OK to
ignore the return value of the `MODULARIZE` constructor function.

Fixes: #21908
  • Loading branch information
sbc100 committed May 17, 2024
1 parent 9ac0425 commit fb2b5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio_worklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class BootstrapMessages extends AudioWorkletProcessor {
// MODULARIZE+AUDIO_WORKLET builds.
if (globalThis.AudioWorkletModule) {
// This populates the Module object with all the Wasm properties
AudioWorkletModule(Module);
globalThis.Module = await AudioWorkletModule(Module);
// We have now instantiated the Module function, can discard it from
// global scope
delete globalThis.AudioWorkletModule;
Expand Down

0 comments on commit fb2b5f9

Please sign in to comment.