Skip to content

Commit 245e659

Browse files
committed
Allow start functions without any externals (host functions)
1 parent ef9a11e commit 245e659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ pub fn execute_code(
236236

237237
let instance = ModuleInstance::new(&module, &imports)
238238
.expect("Module instantation expected to succeed")
239-
.assert_no_start();
239+
.run_start(&mut NopExternals)
240+
.expect("Failed to run start function in module");
240241

241242
let internal_mem = instance
242243
.export_by_name("memory")

0 commit comments

Comments
 (0)