On Mar 3, 3:48 pm, p1r0 <[email protected]> wrote:
> I want to create a callback from C++ to JavaScript.
> Like this, I want to be able to do something in C++ and let JavaScript
> know when it's done by calling
> a funcion.
> Is there a way to do that?

You'll want to use the v8::Function API, specifically Function::Call
(), which can be used to call JS functions from C++. Unfortunately, it
is not directly possible to call a native JS/C++ binder routine (the
native funcs which get bound to JS-side functions) because it is not
possible for us (v8 clients) to create new instances of Arguments
objects.

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

Reply via email to