Skip to content

Commit

Permalink
Fix --invoke [function] to behave the same as "run" (closes #2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jul 12, 2022
1 parent 9ca6fbc commit cd346c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/cli/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ impl Run {

// Do we want to invoke a function?
if let Some(ref invoke) = self.invoke {
let imports = imports! {};
let instance = Instance::new(&module, &imports)?;
let result = self.invoke_function(&instance, invoke, &self.args)?;
println!(
"{}",
Expand Down

0 comments on commit cd346c0

Please sign in to comment.