@@ -1319,16 +1319,27 @@ var __indirect_function_table = makeInvalidEarlyAccess('__indirect_function_tabl
13191319var wasmMemory = makeInvalidEarlyAccess ( 'wasmMemory' ) ;
13201320
13211321function assignWasmExports ( wasmExports ) {
1322+ assert ( wasmExports [ 'add' ] , 'missing Wasm export: add' ) ;
13221323 _add = Module [ '_add' ] = createExportWrapper ( 'add' , 2 ) ;
1324+ assert ( wasmExports [ 'fflush' ] , 'missing Wasm export: fflush' ) ;
13231325 _fflush = createExportWrapper ( 'fflush' , 1 ) ;
1326+ assert ( wasmExports [ 'emscripten_stack_init' ] , 'missing Wasm export: emscripten_stack_init' ) ;
13241327 _emscripten_stack_init = wasmExports [ 'emscripten_stack_init' ] ;
1328+ assert ( wasmExports [ 'emscripten_stack_get_free' ] , 'missing Wasm export: emscripten_stack_get_free' ) ;
13251329 _emscripten_stack_get_free = wasmExports [ 'emscripten_stack_get_free' ] ;
1330+ assert ( wasmExports [ 'emscripten_stack_get_base' ] , 'missing Wasm export: emscripten_stack_get_base' ) ;
13261331 _emscripten_stack_get_base = wasmExports [ 'emscripten_stack_get_base' ] ;
1332+ assert ( wasmExports [ 'emscripten_stack_get_end' ] , 'missing Wasm export: emscripten_stack_get_end' ) ;
13271333 _emscripten_stack_get_end = wasmExports [ 'emscripten_stack_get_end' ] ;
1334+ assert ( wasmExports [ '_emscripten_stack_restore' ] , 'missing Wasm export: _emscripten_stack_restore' ) ;
13281335 __emscripten_stack_restore = wasmExports [ '_emscripten_stack_restore' ] ;
1336+ assert ( wasmExports [ '_emscripten_stack_alloc' ] , 'missing Wasm export: _emscripten_stack_alloc' ) ;
13291337 __emscripten_stack_alloc = wasmExports [ '_emscripten_stack_alloc' ] ;
1338+ assert ( wasmExports [ 'emscripten_stack_get_current' ] , 'missing Wasm export: emscripten_stack_get_current' ) ;
13301339 _emscripten_stack_get_current = wasmExports [ 'emscripten_stack_get_current' ] ;
1340+ assert ( wasmExports [ 'memory' ] , 'missing Wasm export: memory' ) ;
13311341 memory = wasmMemory = wasmExports [ 'memory' ] ;
1342+ assert ( wasmExports [ '__indirect_function_table' ] , 'missing Wasm export: __indirect_function_table' ) ;
13321343 __indirect_function_table = wasmExports [ '__indirect_function_table' ] ;
13331344}
13341345
0 commit comments