Skip to content

Commit

Permalink
Remove default debug handler
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Nov 17, 2023
1 parent 8a652d7 commit 86ddd8a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,7 @@ where
extra_imports: Option<HashMap<&str, Exports>>,
instantiation_lock: Option<&Mutex<()>>,
) -> VmResult<Self> {
let fe = FunctionEnv::new(&mut store, {
let e = Environment::new(backend.api, gas_limit);
if print_debug {
e.set_debug_handler(Some(Rc::new(RefCell::new(
|msg: &str, _info: DebugInfo<'_>| {
eprintln!("{msg}");
},
))))
}
e
});
let fe = FunctionEnv::new(&mut store, Environment::new(backend.api, gas_limit));

let mut import_obj = Imports::new();
let mut env_imports = Exports::new();
Expand Down

0 comments on commit 86ddd8a

Please sign in to comment.