From dcb2490d919d29141af8dc962c1741aee26c0a96 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Tue, 14 Dec 2021 12:25:52 +0100 Subject: [PATCH] Added access to the raw Wasm instance --- lib/api/src/js/instance.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/api/src/js/instance.rs b/lib/api/src/js/instance.rs index 6d1b320535e..a76099b6225 100644 --- a/lib/api/src/js/instance.rs +++ b/lib/api/src/js/instance.rs @@ -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 {