mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Add a mutable accessor for the walrus wasm module
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user