Hey there.

I am trying to write a nodejs extension in C++ and would like to use the 
EventEmitter. However, I can see that its written completely in JS, so I would 
have to somehow inherit the prototype of that. There is a JS way, but it doesnt 
look very clean to me, since I would like to make it pure C++.

So how can I:
- Get the prototype of a JS thing?
- Inherit my object from that prototype?

The example I found is here: https://github.com/bnoordhuis/node-event-emitter

Hope you can help me there!

Kind regards,
Ingwie

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to