mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Fix local table ownership issue
This commit is contained in:
4
lib/api/src/externals/table.rs
vendored
4
lib/api/src/externals/table.rs
vendored
@@ -43,7 +43,7 @@ impl Table {
|
||||
let tunables = store.tunables();
|
||||
let style = tunables.table_style(&ty);
|
||||
let table = tunables
|
||||
.create_table(&ty, &style)
|
||||
.create_table(&ty, &style, None)
|
||||
.map_err(RuntimeError::new)?;
|
||||
|
||||
let num_elements = table.size();
|
||||
@@ -97,9 +97,7 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user