support the start function

This commit is contained in:
Lachlan Sneff
2019-01-18 14:53:46 -08:00
parent 9ed0018045
commit c18328aa4c
3 changed files with 14 additions and 10 deletions

View File

@@ -26,6 +26,9 @@ impl Caller {
func_export_set.insert(*func_index);
}
}
if let Some(start_func_index) = module.start_func {
func_export_set.insert(start_func_index);
}
Self { func_export_set }
}