diff --git a/lib/cli/src/commands/run.rs b/lib/cli/src/commands/run.rs index 3e0904d44e2..81ecafb4c1d 100644 --- a/lib/cli/src/commands/run.rs +++ b/lib/cli/src/commands/run.rs @@ -224,7 +224,9 @@ impl Run { let module_result: Result = if !self.disable_cache && contents.len() > 0x1000 { self.get_module_from_cache(&store, &contents, &engine_type, &compiler_type) } else { - Module::new(&store, &contents).map_err(|e| e.into()) + let module = Module::new(&store, &contents)?; + let _serialized = module.serialize()?; + Ok(module) }; #[cfg(not(feature = "cache"))] let module_result = Module::new(&store, &contents);