mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 14:01:25 +00:00
Add a mutable accessor for the walrus wasm module
This commit is contained in:
@ -565,6 +565,10 @@ impl Output {
|
|||||||
&self.module
|
&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> {
|
pub fn emit(&mut self, out_dir: impl AsRef<Path>) -> Result<(), Error> {
|
||||||
self._emit(out_dir.as_ref())
|
self._emit(out_dir.as_ref())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user