Add imported globals

This commit is contained in:
Brandon Fish
2019-01-13 16:45:36 -06:00
parent 185394cf1a
commit de1da689f8
5 changed files with 48 additions and 6 deletions

View File

@ -59,6 +59,10 @@ impl ModuleInner {
pub(crate) fn is_imported_table(&self, table_index: TableIndex) -> bool {
table_index.index() < self.imported_tables.len()
}
pub(crate) fn is_imported_global(&self, global_index: GlobalIndex) -> bool {
global_index.index() < self.imported_globals.len()
}
}
#[doc(hidden)]