Skip to content

Commit 6ad821f

Browse files
authored
Ifdef wasmBinaryFile assignment from SINGLE_FILE builds. (#21587)
1 parent 65b26e3 commit 6ad821f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/preamble.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,11 @@ var wasmBinaryFile;
595595
if (Module['locateFile']) {
596596
#endif
597597
wasmBinaryFile = '{{{ WASM_BINARY_FILE }}}';
598+
#if !SINGLE_FILE
598599
if (!isDataURI(wasmBinaryFile)) {
599600
wasmBinaryFile = locateFile(wasmBinaryFile);
600601
}
602+
#endif
601603
#if EXPORT_ES6 && USE_ES6_IMPORT_META && !SINGLE_FILE && !AUDIO_WORKLET // In single-file mode, repeating WASM_BINARY_FILE would emit the contents again. For an Audio Worklet, we cannot use `new URL()`.
602604
} else {
603605
#if ENVIRONMENT_MAY_BE_SHELL

0 commit comments

Comments
 (0)