Implement further for compiler-cranelift; add ExternRef

This commit is contained in:
Mark McCaskey
2021-02-08 12:49:15 -08:00
parent ecf891e0ac
commit 6cfcc92d52
26 changed files with 682 additions and 116 deletions

View File

@@ -69,7 +69,9 @@ impl Table {
/// Retrieves an element of the table at the provided `index`.
pub fn get(&self, index: u32) -> Option<Val> {
let item = self.table.get(index)?;
// TODO: review change to make inner table return a trap in Result, maybe we don't
// want that
let item = self.table.get(index).ok()?;
Some(ValFuncRef::from_table_reference(item, &self.store))
}