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
Simplify findWasmBinary() and reduce usage of isDataURI(). NFC (#23549)
The `findWasmBinary()` function only exists when SINGLE_FILE is not
true.
Also, the only time `WASM_BINARY_FILE` can be a data URL is in
SINGLE_FILE mode.
#if EXPORT_ES6&&USE_ES6_IMPORT_META&&!AUDIO_WORKLET// In single-file mode, repeating WASM_BINARY_FILE would emit the contents again. For an Audio Worklet, we cannot use `new URL()`.
600
+
returnlocateFile('{{{ WASM_BINARY_FILE }}}');
601
+
#if EXPORT_ES6&&USE_ES6_IMPORT_META&&!AUDIO_WORKLET// For an Audio Worklet, we cannot use `new URL()`.
617
602
}
618
603
#if ENVIRONMENT_MAY_BE_SHELL
619
-
if(ENVIRONMENT_IS_SHELL)
604
+
if(ENVIRONMENT_IS_SHELL){
620
605
return'{{{ WASM_BINARY_FILE }}}';
606
+
}
621
607
#endif
622
608
// Use bundler-friendly `new URL(..., import.meta.url)` pattern; works in browsers too.
0 commit comments