Fix wasm linking bugs

This commit is contained in:
Brian Carroll 2021-11-09 21:22:12 +00:00
parent a9ce02799c
commit e2b95662a8
3 changed files with 22 additions and 10 deletions

View file

@ -7,6 +7,7 @@ use crate::helpers::wasm32_test_result::Wasm32TestResult;
use roc_builtins::bitcode;
use roc_can::builtins::builtin_defs_map;
use roc_collections::all::{MutMap, MutSet};
use roc_gen_wasm::MEMORY_NAME;
use tempfile::tempdir;
@ -218,7 +219,7 @@ where
let instance = crate::helpers::wasm::helper_wasm(&arena, src, stdlib, &expected);
let memory = instance.exports.get_memory("__linear_memory").unwrap();
let memory = instance.exports.get_memory(MEMORY_NAME).unwrap();
let test_wrapper = instance.exports.get_function(TEST_WRAPPER_NAME).unwrap();