You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compare objects which crosses from VM -> host -> VM. This seems to fail. See the example below. Is it possible to add support for this? :)
Kind regards, Emil
(async () => {
const vm = (await getQuickJS()).createVm();
const arena = new Arena(vm, { isMarshalable: true });
function test(obj) {
return obj;
}
arena.expose({ test });
console.log(arena.evalCode(`let foo = {}; foo === test(foo)`)); // I want this to log 'true', but it logs 'false'
arena.dispose();
vm.dispose();
})();
Also, thanks for this great library! :)
The text was updated successfully, but these errors were encountered:
emilmuller
changed the title
Possible to synchronize vm -> host?
Possible to synchronize vm -> host -> vm?
Oct 11, 2021
Hi
I'm trying to compare objects which crosses from VM -> host -> VM. This seems to fail. See the example below. Is it possible to add support for this? :)
Kind regards, Emil
Also, thanks for this great library! :)
The text was updated successfully, but these errors were encountered: