Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added access to the raw Wasm instance #2724

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Added access to the raw Wasm instance #2724

merged 1 commit into from
Dec 14, 2021

Conversation

syrusakbary
Copy link
Member

In order to solve this issue in wasmer-js we need to expose access to the underlying WebAssembly instance:

wasmerio/wasmer-js#284

@@ -173,6 +173,12 @@ impl Instance {
pub fn store(&self) -> &Store {
self.module.store()
}

/// Returns the inner WebAssembly Instance
#[doc(hidden)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this API meant to be publicly usable? In that case it shouldn't be hidden from the documentation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it differs from the SYS API, I rather keep it hidden so people don't rely on it.

Although, we need it for wasmer-js

@syrusakbary
Copy link
Member Author

Merging directly to fasten the process (no existing code has been changed)

@syrusakbary syrusakbary merged commit 73777ad into master Dec 14, 2021
@bors bors bot deleted the js-raw-instance branch December 14, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants