mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
Update to Cranelift 0.65, wasmparser 0.57
This commit is contained in:
4
lib/api/src/externals/table.rs
vendored
4
lib/api/src/externals/table.rs
vendored
@@ -1,7 +1,7 @@
|
||||
use crate::exports::{ExportError, Exportable};
|
||||
use crate::externals::Extern;
|
||||
use crate::store::Store;
|
||||
use crate::types::{Val, ValAnyFunc};
|
||||
use crate::types::{Val, ValFuncRef};
|
||||
use crate::RuntimeError;
|
||||
use crate::TableType;
|
||||
use wasmer_runtime::{Export, ExportTable, Table as RuntimeTable, VMCallerCheckedAnyfunc};
|
||||
@@ -70,7 +70,7 @@ 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)?;
|
||||
Some(ValAnyFunc::from_checked_anyfunc(item, &self.store))
|
||||
Some(ValFuncRef::from_checked_anyfunc(item, &self.store))
|
||||
}
|
||||
|
||||
/// Sets an element `val` in the Table at the provided `index`.
|
||||
|
||||
Reference in New Issue
Block a user