Skip to content

Commit 8513900

Browse files
committed
Add a mutable accessor for the walrus wasm module
1 parent aca49e1 commit 8513900

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/cli-support/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ impl Output {
565565
&self.module
566566
}
567567

568+
pub fn wasm_mut(&mut self) -> &mut walrus::Module {
569+
&mut self.module
570+
}
571+
568572
pub fn emit(&mut self, out_dir: impl AsRef<Path>) -> Result<(), Error> {
569573
self._emit(out_dir.as_ref())
570574
}

0 commit comments

Comments
 (0)