Skip to content

Commit

Permalink
Merge pull request #2724 from wasmerio/js-raw-instance
Browse files Browse the repository at this point in the history
Added access to the raw Wasm instance
  • Loading branch information
syrusakbary authored Dec 14, 2021
2 parents a79876b + dcb2490 commit 73777ad
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 73777ad

Please sign in to comment.