Skip to content

Commit

Permalink
Impl WasmType for FuncRef and ExternRef (#642)
Browse files Browse the repository at this point in the history
impl WasmType for FuncRef and ExternRef

This allows to use FuncRef and ExternRef types with the TypedFunc API and everything that connects to it.

This functionality was trivial to add and simply forgotten in the reference-types implementation PR.
  • Loading branch information
Robbepop authored Feb 2, 2023
1 parent dc96460 commit af4d525
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/wasmi/src/func/into_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use crate::{
core::{Trap, ValueType, F32, F64},
foreach_tuple::for_each_tuple,
Caller,
ExternRef,
FuncRef,
FuncType,
};
use core::{array, iter::FusedIterator};
Expand Down Expand Up @@ -179,6 +181,8 @@ impl_wasm_type! {
type i64 = I64;
type F32 = F32;
type F64 = F64;
type FuncRef = FuncRef;
type ExternRef = ExternRef;
}

/// A list of [`WasmType`] types.
Expand Down

0 comments on commit af4d525

Please sign in to comment.