It has to be set by c++ side when constructing the object.
v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New();
v8::Handle<v8::ObjectTemplate> proto = templ->PrototypeTemplate();
proto->Set(v8::String::New("myfunction",
v8::FunctionTemplate::New(__CallHandler__));

On Thu, Apr 22, 2010 at 11:08 AM, Piero B. Contezini <
[email protected]> wrote:

> Hello,
>
> I'm trying to get the function name being called from the javascript
> code to the C++ code.
>
> It is a SOAP WSDL Loader that needs to register dynamic functions to
> an object. For this to work, I need to know the function name being
> called to this object.
>
> In theory it should be simple, because I have the arguments.Calle().
> But when I call the GetName() function, it is just not there. There is
> something missing here.
>
> Anyone had this issue?
>
> Thanks
>
> Piero
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

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

Reply via email to