Skip to content

Commit 66e3185

Browse files
authored
[SPLIT_MODULE] Fix wasmRawExports to actually be the raw exports. NFC (#25979)
We don't want the raw exports include things like `Asyncify.instrumentWasmExports` or `relocateExports`. They should be the actual raw exports. See #25621
1 parent b384663 commit 66e3185

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/preamble.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,9 @@ function getWasmImports() {
724724
#endif
725725
var origExports = wasmExports;
726726
#endif
727+
#if SPLIT_MODULE
728+
wasmRawExports = wasmExports;
729+
#endif
727730

728731
#if ASYNCIFY
729732
wasmExports = Asyncify.instrumentWasmExports(wasmExports);
@@ -739,14 +742,10 @@ function getWasmImports() {
739742
#endif
740743
#endif
741744

742-
743745
#if ABORT_ON_WASM_EXCEPTIONS
744746
wasmExports = instrumentWasmExportsWithAbort(wasmExports);
745747
#endif
746748

747-
#if SPLIT_MODULE
748-
wasmRawExports = wasmExports;
749-
#endif
750749
#if MEMORY64 || CAN_ADDRESS_2GB
751750
wasmExports = applySignatureConversions(wasmExports);
752751
#endif

0 commit comments

Comments
 (0)