Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 18, 2023
1 parent 43f6158 commit 52fa6d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,9 @@ impl RunCommand {
.ok_or_else(|| anyhow!("no func export named `{}` found", name))?
} else {
instance
.get_func(&mut *store, "_start")
.ok_or_else(|| anyhow!("no `_start` function found"))?
.get_func(&mut *store, "")
.or_else(|| instance.get_func(&mut *store, "_start"))
.ok_or_else(|| anyhow!("no `_start` or `` function found"))?
};

self.invoke_func(store, func)
Expand Down

0 comments on commit 52fa6d9

Please sign in to comment.