From 3fa01be0bb4e42bbab20fe0191d84ee0633c86e9 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 19 Nov 2018 13:21:11 -0800 Subject: [PATCH] Remove offsets print --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bb181aecf..fd75ee802 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,11 +76,11 @@ fn execute_wasm(wasm_path: PathBuf) -> Result<(), String> { webassembly::instantiate(wasm_binary, import_object) .map_err(|err| format!("Can't instantiate the WebAssembly module: {}", err))?; - webassembly::utils::print_instance_offsets(&instance); + // webassembly::utils::print_instance_offsets(&instance); let func_index = instance .start_func - .unwrap_or_else(|| match module.info.exports.get("main") { + .unwrap_or_else(|| match module.info.exports.get("main").or(module.info.exports.get("_main")) { Some(&webassembly::Export::Function(index)) => index, _ => panic!("Main function not found"), });