Hi, i'm a newbie on using v8. I'm trying to embedded v8 into a c++ 
application and provide javascript as an extension language.
Now i'm seeking a way to invoke javascript code (as a string) from c++ 
environment, with a specific object as 'this'. 

We may have some c++ strings containing javascript expressions like 

"this.propA + globalObjectX.propB"

which accesses properties of a specific object as 'this'. I'm able to 
obtain the Handle<Object> of that specific object and the Context which 
contains globalObjectX. 

I can think of some ways like direct eval call which involves some 
javascript code that seems to be able to get this working. But I'm 
wondering what is the proper and reasonably efficient way to execute this 
code from C++ environment.  Thanks a lot.

-- 
-- 
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