Skip to content

Commit 2141d77

Browse files
committed
MINIMAL_RUNTIME: Declare wasmExports globally as needed
The conditions under which wasmExports was declared global vs locally were out of sync. Also, move the declaration of the global wasmExports alongside the other wasm globals. See: #20145
1 parent 202127c commit 2141d77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/preamble_minimal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ var HEAP8, HEAP16, HEAP32, HEAPU8, HEAPU16, HEAPU32, HEAPF32, HEAPF64,
6666
#endif
6767
#if SUPPORT_BIG_ENDIAN
6868
HEAP_DATA_VIEW,
69+
#endif
70+
#if LibraryManager.has('library_exports.js') || EMBIND
71+
wasmExports,
6972
#endif
7073
wasmMemory, wasmTable;
7174

0 commit comments

Comments
 (0)