In my v8 application i have an object like house which has functions like 
build. It was build using the javascript like

var house;
house.build = function() { }

How can i access this javascript variable from the c++ code ?

I tried getting current context, 

Local<Object> basicObj = Context::GetCurrent()->Global();
Local<String> toSearch = String::New("house");

if(basicObj->Has(toSearch)) {                                               
             // <--- coming false.
Local<Value> val = basicObj->Get(toSearch);
        // .. do something...
}

What can i do ?

-- 
-- 
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/groups/opt_out.

Reply via email to