Skip to content

Commit e09ae4a

Browse files
committed
Remove default debug handler
1 parent b0ff68d commit e09ae4a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/vm/src/instance.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,7 @@ where
9595
extra_imports: Option<HashMap<&str, Exports>>,
9696
instantiation_lock: Option<&Mutex<()>>,
9797
) -> VmResult<Self> {
98-
let fe = FunctionEnv::new(&mut store, {
99-
let e = Environment::new(backend.api, gas_limit);
100-
if print_debug {
101-
e.set_debug_handler(Some(Rc::new(RefCell::new(
102-
|msg: &str, _info: DebugInfo<'_>| {
103-
eprintln!("{msg}");
104-
},
105-
))))
106-
}
107-
e
108-
});
98+
let fe = FunctionEnv::new(&mut store, Environment::new(backend.api, gas_limit));
10999

110100
let mut import_obj = Imports::new();
111101
let mut env_imports = Exports::new();

0 commit comments

Comments
 (0)