Skip to content

Commit e766bf7

Browse files
committed
Fix --invoke [function] to behave the same as "run" (closes #2978)
1 parent 1d9f4b5 commit e766bf7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/cli/src/commands/run.rs

-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ impl Run {
198198

199199
// Do we want to invoke a function?
200200
if let Some(ref invoke) = self.invoke {
201-
let imports = imports! {};
202-
let instance = Instance::new(&module, &imports)?;
203201
let result = self.invoke_function(&instance, invoke, &self.args)?;
204202
println!(
205203
"{}",

0 commit comments

Comments
 (0)