make the missing memory error value configurable

This commit is contained in:
Pat Hickey
2020-06-23 15:26:17 -07:00
parent 62237de7ce
commit 49c62ee828
3 changed files with 47 additions and 5 deletions

View File

@@ -24,7 +24,9 @@ wasm modules. This structure exports all that various fields of the
wasi instance as fields which can be used to implement your own
instantiation logic, if necessary. Additionally [`Wasi::get_export`]
can be used to do name-based resolution."
}
},
// Error to return when caller module is missing memory export:
missing_memory: { wasi_common::wasi::Errno::Inval },
});
pub fn is_wasi_module(name: &str) -> bool {