obj: minor fix to emit_module compile

This commit is contained in:
m4b
2017-11-05 00:03:56 -07:00
committed by GitHub
parent 114da83ad6
commit 89d3038c1c

View File

@@ -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()
})?; })?;