código js como este
var test = testfactory.creat(); test.send({'xxx'}); test.onopen = function() { console.log('onopen'); }c ++ código como este
class testfactory { public: mytest* creat() { reutrn new mytest(); } } class mytest { public: void send(); void onopen(); }entonces, ¿cómo crear un objeto y volver a js usando google v8?
Intente leer la documentación oficial, que explica esto: https://v8.dev/docs/embed