Merge pull request #3 from m4b/patch-1
obj: minor fix to emit_module compile
This commit is contained in:
@@ -28,7 +28,7 @@ pub fn emit_module<'module>(
|
|||||||
let body = &compilation.functions[i];
|
let body = &compilation.functions[i];
|
||||||
let external_name =
|
let external_name =
|
||||||
wasmstandalone_runtime::get_func_name(compilation.module.imported_funcs.len() + i);
|
wasmstandalone_runtime::get_func_name(compilation.module.imported_funcs.len() + i);
|
||||||
let string_name = str::from_utf8(x.as_ref()).map_err(|err| {
|
let string_name = str::from_utf8(external_name.as_ref()).map_err(|err| {
|
||||||
err.description().to_string()
|
err.description().to_string()
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user