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 -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -