diff options
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index c522a71f6..868c8e6ac 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -75,7 +75,8 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { EM_ASM({ Module['asmExports'] = {}; }); - for (auto& curr : module->exports) { + for (auto& pair : module->exportsMap) { + auto& curr = pair.second; EM_ASM_({ var name = Pointer_stringify($0); Module['asmExports'][name] = function() { |