mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
wasm: Custom Debug impl for NameSection
This commit is contained in:
parent
a9df6f4ff9
commit
b46690ecf2
2 changed files with 28 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue