I retrieve JS objects in c++ via this:

(assuming there is a JS object "response" in global scope)

v8::Local<v8::Value> response = v8::Context::GetCurrent()->Global()-
>Get(v8::String::New("response"));



O.



On 2 Říj, 11:11, [EMAIL PROTECTED] wrote:
> the answers show how to call JS-defined function in C++, but is it
> possible to access objects which are created in JS within C++, so that
> I can use that object in C++?
>
> Thanks,
> bg
>
> On 1 Okt., 15:23, [EMAIL PROTECTED] wrote:
>
> > Is it possible to access objects which are created in Javascript
> > within C++, so that I can use that object in C++?
>
> > Thanks,
> > bg
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to