Add a mutable accessor for the walrus wasm module

This commit is contained in:
Alex Crichton
2019-11-19 07:48:34 -08:00
parent aca49e1a6e
commit 851390089b

View File

@ -565,6 +565,10 @@ impl Output {
&self.module
}
pub fn wasm_mut(&mut self) -> &mut walrus::Module {
&mut self.module
}
pub fn emit(&mut self, out_dir: impl AsRef<Path>) -> Result<(), Error> {
self._emit(out_dir.as_ref())
}