javy
javy copied to clipboard
Serialize function / callbacks with enclosing context;
How can I get a function from one quickjs wasm rs vm/runtime and execute that function in another instance of quickjs wasm rs vm/runtime.
Suppose I have a function like below
let x = "hello"
function abc(){
console.log(x)
}
I want to take above abc function from one qjs instance and give it to another instance and run . The output should be same in second instance as it was in first .