Fix local memory ownership issue -- WIP

This commit contains a ton of debug code that we'll need to remove
This commit is contained in:
Mark McCaskey
2020-10-14 15:15:50 -07:00
parent dd62823f2a
commit 4fc8ace118
12 changed files with 305 additions and 53 deletions

View File

@@ -97,7 +97,9 @@ impl Table {
let item = init.into_checked_anyfunc(&self.store)?;
match self.table.grow(delta) {
Some(len) => {
dbg!("In Some result of table.grow");
for i in 0..delta {
dbg!("setting element", i);
set_table_item(self.table.as_ref(), len + i, item.clone())?;
}
Ok(len)