Skip to content

Commit

Permalink
Add a mutable accessor for the walrus wasm module
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 19, 2019
1 parent aca49e1 commit 8513900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 8513900

Please sign in to comment.