javy icon indicating copy to clipboard operation
javy copied to clipboard

Serialize function / callbacks with enclosing context;

Open redoC-A2k opened this issue 1 month ago • 4 comments

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 .

redoC-A2k avatar May 22 '24 11:05 redoC-A2k