wasm: Custom Debug impl for NameSection

This commit is contained in:
Brian Carroll 2022-02-13 12:42:50 +00:00
parent a9df6f4ff9
commit b46690ecf2
2 changed files with 28 additions and 2 deletions

View file

@ -119,6 +119,7 @@ impl<'a> WasmModule<'a> {
+ self.element.size()
+ self.code.size()
+ self.data.size()
+ self.names.size()
}
pub fn preload(arena: &'a Bump, bytes: &[u8]) -> Self {
@ -146,7 +147,6 @@ impl<'a> WasmModule<'a> {
let global = GlobalSection::preload(arena, bytes, &mut cursor);
ExportSection::skip_bytes(bytes, &mut cursor);
let export = ExportSection::empty(arena);
let start = OpaqueSection::preload(SectionId::Start, arena, bytes, &mut cursor);