Hello,

So, suppose I am wrapping a C++ class around a JS constructor, I've already 
created and initialized the isolate, created and initialized a context, I 
have the FunctionTemplate for the constructor and I have instantiated the 
function and I can call it from Js as x() or new X(),
all this is fine, the function template context is finished and the handle 
lost.

But then I want to create another wrapped object for a class that inherits 
from the first one.
Is there a way to retrieve the base class FunctionTemplate so in the child 
class I can call child->Inherit(base)?

Is there another way of doing this?

Right now I am keeping a C++ unordered_map of isolate to persistent handle 
to function templates, and that works, but is that the only option?

Thanks!

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/52965bf8-2490-4954-b28f-2752689cbd4fn%40googlegroups.com.

Reply via email to