Are realms the only way to round trip a mutable object from Rust -> JS and back? #3819
Unanswered
tom-sherman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
For now yes, but I think with #3802 you will be able to inject data to the context itself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to pass an object into the default function export of a
Module
. That function will mutate the object I pass in. When that function has finished executing (or the promise it returns has resolved) I want to use that updated object on the Rust side.I saw the example using realms but was wondering if there's an easier way.
Beta Was this translation helpful? Give feedback.
All reactions