Hi, I've got two problems:

1) I want to create a JavaScript "class" (prototype), that
instantiates a C++ class. So for example, if script makes: "new
MyClass(blah)", in C++ there should be also a class instantiated. The
pointer should be saved and connected with the JS class, and should be
deleted when the JS class gets deleted (I think the GC deletes JS
classes). How can I detect in C++ WHEN the JS class gets deleted?

2) Another thing is to always work with the same class. Script makes
"new MyTest(blub)" and should work with the same C++ instance
internally. If the script calls "new MyTest(blub)" again, it should
use the same class again. How can I do that?

Thanks!

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to