Allow cross-module indirect calls.

This commit is contained in:
losfair
2019-03-19 11:47:38 +08:00
parent af24cfc8c4
commit 2ab2205d6b
5 changed files with 40 additions and 45 deletions

View File

@ -107,7 +107,6 @@ impl AnyfuncTable {
func: ptr,
ctx: ptr::null_mut(),
sig_id,
func_index: None,
}
}
AnyfuncInner::Managed(ref func) => {
@ -118,7 +117,6 @@ impl AnyfuncTable {
func: func.raw(),
ctx: func.instance_inner.vmctx,
sig_id,
func_index: Some(func.func_index),
}
}
};