Support function names in IT (#41)

This commit is contained in:
vms
2020-11-07 00:08:09 +03:00
committed by GitHub
parent ddd3448af7
commit 2ef43ee778
16 changed files with 99 additions and 74 deletions

View File

@ -82,7 +82,10 @@ impl WITInstance {
// here it is safe because dyn func is never lives WITInstance
let export_func =
std::mem::transmute::<DynFunc<'_>, DynFunc<'static>>(export_func);
Ok((export_id, WITFunction::from_export(export_func)?))
Ok((
export_id,
WITFunction::from_export(export_func, export.name.to_string())?,
))
}
})
.collect()