Fix a missing early-return in Table::get (#1652)
Turns out this was a typo from #1016!
This commit is contained in:
@@ -216,7 +216,7 @@ pub(crate) fn from_checked_anyfunc(
|
||||
store: &Store,
|
||||
) -> Val {
|
||||
if item.type_index == wasmtime_runtime::VMSharedSignatureIndex::default() {
|
||||
Val::AnyRef(AnyRef::Null);
|
||||
return Val::AnyRef(AnyRef::Null);
|
||||
}
|
||||
let instance_handle = unsafe { wasmtime_runtime::InstanceHandle::from_vmctx(item.vmctx) };
|
||||
let export = wasmtime_runtime::ExportFunction {
|
||||
|
||||
Reference in New Issue
Block a user