Skip to content

Commit

Permalink
Merge pull request #3 from m4b/patch-1
Browse files Browse the repository at this point in the history
obj: minor fix to emit_module compile
  • Loading branch information
sunfishcode authored Nov 5, 2017
2 parents 114da83 + 89d3038 commit 9ee6e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/obj/src/emit_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn emit_module<'module>(
let body = &compilation.functions[i];
let external_name =
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()
})?;

Expand Down

0 comments on commit 9ee6e74

Please sign in to comment.