mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Moved tunables into Store
This commit is contained in:
2
lib/api/src/externals/table.rs
vendored
2
lib/api/src/externals/table.rs
vendored
@@ -33,7 +33,7 @@ impl Table {
|
||||
/// All the elements in the table will be set to the `init` value.
|
||||
pub fn new(store: &Store, ty: TableType, init: Val) -> Result<Table, RuntimeError> {
|
||||
let item = init.into_checked_anyfunc(store)?;
|
||||
let tunables = store.engine().tunables();
|
||||
let tunables = store.tunables();
|
||||
let table_plan = tunables.table_plan(ty);
|
||||
let table = tunables
|
||||
.create_table(table_plan)
|
||||
|
||||
Reference in New Issue
Block a user