Remove offsets print

This commit is contained in:
Syrus Akbary 2018-11-19 13:21:11 -08:00
parent 3b878620cc
commit 3fa01be0bb

View File

@ -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"),
});