mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fix compilation
This commit is contained in:
parent
cc3c9b6df3
commit
1322446f04
@ -12,7 +12,7 @@ use wasmer_runtime_core::{
|
||||
global::Global,
|
||||
import::{ImportObject, Namespace},
|
||||
imports,
|
||||
memory::Memory,
|
||||
memory::{Memory, MemoryVariant},
|
||||
table::Table,
|
||||
types::{
|
||||
ElementType, FuncSig, GlobalDescriptor, MemoryDescriptor, TableDescriptor,
|
||||
@ -322,7 +322,7 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject
|
||||
|
||||
let import_object = imports! {
|
||||
"env" => {
|
||||
"memory" => Export::Memory(globals.memory.clone()),
|
||||
"memory" => Export::Memory(MemoryVariant::Unshared(globals.memory.clone())),
|
||||
"table" => Export::Table(globals.table.clone()),
|
||||
|
||||
// Globals
|
||||
|
@ -18,7 +18,7 @@ macro_rules! assert_emscripten_output {
|
||||
let mut emscripten_globals = EmscriptenGlobals::new(&module);
|
||||
let import_object = generate_emscripten_env(&mut emscripten_globals);
|
||||
|
||||
let mut instance = module.instantiate(import_object)
|
||||
let mut instance = module.instantiate(&import_object)
|
||||
.map_err(|err| format!("Can't instantiate the WebAssembly module: {:?}", err)).unwrap(); // NOTE: Need to figure what the unwrap is for ??
|
||||
|
||||
let capturer = StdioCapturer::new();
|
||||
|
Loading…
Reference in New Issue
Block a user