Fix wasm tests

This commit is contained in:
Sergey Pepyakin
2017-12-12 15:40:54 +01:00
parent 4297a64e9e
commit c5c8af03e1
3 changed files with 16 additions and 19 deletions

View File

@ -113,4 +113,8 @@ impl ProgramInstance {
pub fn store(&self) -> &Store {
&self.store
}
pub fn module(&self, name: &str) -> Option<ModuleId> {
self.modules.get(name).cloned()
}
}