wasm_module: create WasmModule::new for testing

This commit is contained in:
Brian Carroll 2022-11-21 18:24:49 +00:00
parent 2ca74e5070
commit 26cce05bbe
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
5 changed files with 133 additions and 6 deletions

View file

@ -158,7 +158,7 @@ pub struct RelocationSection<'a> {
}
impl<'a> RelocationSection<'a> {
fn new(arena: &'a Bump, name: &'a str) -> Self {
pub(crate) fn new(arena: &'a Bump, name: &'a str) -> Self {
RelocationSection {
name,
target_section_index: 0,