wasm: include Name section in output binary, for debugging

This commit is contained in:
Brian Carroll 2022-02-10 10:15:19 +00:00
parent 8c5fe2ae22
commit 55465d15a0
2 changed files with 32 additions and 11 deletions

View file

@ -66,6 +66,7 @@ impl<'a> WasmModule<'a> {
self.element.serialize(buffer);
self.code.serialize(buffer);
self.data.serialize(buffer);
self.names.serialize(buffer);
}
/// Serialize the module to bytes