Skip to content

Commit

Permalink
Added access to the raw Wasm instance
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Dec 14, 2021
1 parent 60c58af commit dcb2490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/api/src/js/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ impl Instance {
pub fn store(&self) -> &Store {
self.module.store()
}

/// Returns the inner WebAssembly Instance
#[doc(hidden)]
pub fn raw(&self) -> &WebAssembly::Instance {
&self.instance
}
}

impl fmt::Debug for Instance {
Expand Down

0 comments on commit dcb2490

Please sign in to comment.