c++ - Node.js / v8 assignment operator overloading -


my question simple, how define behavior of assignment operator in v8 / node.js?

assume have class in c++ domain have set method. when write js:

var jsinstance = new cppwrappedclass(params1); jsinstance = new cppwrappedclass(params2); 

the second call new cppwrappedclass(...) totally replaces contents of jsinstance new one. want achieve when second call happens, in c++ backend, set method gets called. aka define behavior of assignment operator.

is possible?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -