Add imported tables

This commit is contained in:
Brandon Fish
2019-01-13 10:46:04 -06:00
parent a9e58203f2
commit 902df8b303
4 changed files with 99 additions and 8 deletions

View File

@ -56,6 +56,10 @@ impl ModuleInner {
pub(crate) fn is_imported_memory(&self, memory_index: MemoryIndex) -> bool {
memory_index.index() < self.imported_memories.len()
}
pub(crate) fn is_imported_table(&self, table_index: TableIndex) -> bool {
table_index.index() < self.imported_tables.len()
}
}
#[doc(hidden)]