You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use var and undefined in libwebaudio.js. NFC (#24814)
The convention for JS library code is to use var for better
minification.
The use of `void 0` instead of `undefined` I believe is a minor code
size optimization, but its somewhat obscure and (as you can see from the
fact that the code expectations didn't change) it an optimization that
is already performed on the generated code anyway.
Split out from #24732
console.log(`Creating new WebAudio context with parameters:`);
@@ -146,8 +146,8 @@ let LibraryWebAudio = {
146
146
assert(EmAudio[contextHandle]instanceof(window.AudioContext||window.webkitAudioContext),`Called emscripten_start_wasm_audio_worklet_thread_async() on a context handle ${contextHandle} that is not an AudioContext, but of type ${typeofEmAudio[contextHandle]}`);
147
147
#endif
148
148
149
-
letaudioContext=EmAudio[contextHandle],
150
-
audioWorklet=audioContext.audioWorklet;
149
+
varaudioContext=EmAudio[contextHandle];
150
+
varaudioWorklet=audioContext.audioWorklet;
151
151
152
152
#if ASSERTIONS
153
153
assert(stackLowestAddress!=0,'AudioWorklets require a dedicated stack space for audio data marshalling between Wasm and JS!');
0 commit comments