I'm looking for a way to retrieve (a Handle for) the ObjectTemplate given 
that I have a Handle of an Object at hand.
Does someone now how I could achieve this? To illustrate, I write what I 
would like to have as pseudo code:

Local<Object> glob = context->Global();
Handle<Value> keyVal = cvv8::CastToJS("Object"); // I'm using cvv8 for 
convenience 
Local<String> key = Local<String>::New(keyVal->ToString());
Handle<Object> obj = Local<Object>::Cast(glob->GetRealNamedProperty(key));
Handle<ObjectTemplate> tmpl = obj->GetObjectTemplate() // this isn't 
available, could this be achieved some other way?

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

Reply via email to