mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
Removed from_vm_export in favor of from_vm_extern
This commit is contained in:
2
lib/api/src/js/externals/mod.rs
vendored
2
lib/api/src/js/externals/mod.rs
vendored
@@ -46,7 +46,7 @@ impl Extern {
|
||||
}
|
||||
|
||||
/// Create an `Extern` from an `wasmer_compiler::Export`.
|
||||
pub fn from_vm_export(store: &mut impl AsStoreMut, export: Export) -> Self {
|
||||
pub fn from_vm_extern(store: &mut impl AsStoreMut, export: Export) -> Self {
|
||||
match export {
|
||||
Export::Function(f) => Self::Function(Function::from_vm_extern(store, f)),
|
||||
Export::Memory(m) => Self::Memory(Memory::from_vm_extern(store, m)),
|
||||
|
||||
Reference in New Issue
Block a user