Skip to content

Commit 73ebb91

Browse files
authored
Remove redundant check for SUPPORT_BASE64_EMBEDDING in getWasmBinary. NFC (#23491)
This block of code is withing `!SINGLE_FILE` but `SUPPORT_BASE64_EMBEDDING` is only ever defined when `SINGLE_FILE` is enabled. In the past I think `SUPPORT_BASE64_EMBEDDING` may have been defined under more circumstances? The codesize changes are just white-space only changes in the un-optimized output.
1 parent 6870ed4 commit 73ebb91

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/preamble.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,7 @@ function getBinarySync(file) {
627627
async function getWasmBinary(binaryFile) {
628628
#if !SINGLE_FILE
629629
// If we don't have the binary yet, load it asynchronously using readAsync.
630-
if (!wasmBinary
631-
#if SUPPORT_BASE64_EMBEDDING
632-
|| isDataURI(binaryFile)
633-
#endif
634-
) {
630+
if (!wasmBinary) {
635631
// Fetch the binary using readAsync
636632
try {
637633
var response = await readAsync(binaryFile);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
52739
1+
52732
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28487
1+
28480
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51522
1+
51515

0 commit comments

Comments
 (0)