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

Implement ExternRef in wasmer-js #3224

Closed
wants to merge 7 commits into from
Closed

Implement ExternRef in wasmer-js #3224

wants to merge 7 commits into from

Conversation

fschutt
Copy link
Contributor

@fschutt fschutt commented Oct 11, 2022

Fixes #3175.

@fschutt fschutt requested a review from syrusakbary as a code owner October 11, 2022 13:26
@@ -33,7 +34,7 @@ pub enum Value {
F64(f64),

/// An `externref` value which can hold opaque data to the wasm instance itself.
//ExternRef(Option<ExternRef>),
ExternRef(Option<Arc<ExternRef>>),
Copy link
Member

Choose a reason for hiding this comment

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

Why an Arc here?

Copy link
Member

Choose a reason for hiding this comment

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

It seems to me that the ExternRef should be the one storing the Arc (if really needed) (and hidden from the user)

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.

Have ExternRef working in wasmer-js
2 participants