laverdet / isolated-vm

Secure & isolated JS environments for nodejs
ISC License
2.18k stars 154 forks source link

#<Promise> could not be cloned. #271

Closed SalmanVamiq closed 2 years ago

SalmanVamiq commented 2 years ago

Dear Author

I am really sorry, this is really not an issue I know and I am just looking for help. I am trying to pass an object from main isolate to another isolate where I wrap it in another object and return it back to main isolate as function return. I have not been able to make it work, I have staged it in code sandbox if you would like to have a look. https://codesandbox.io/s/stoic-breeze-dvw9i?file=/src/index.js

You can open a new terminal and run yarn dev to run the code.

Thank you so much in advance,

SalmanVamiq commented 2 years ago

I am sorry, I was able to figure this out.