In V8, i am calling a javascript function from c++, that take a callback as 
its last argument. 

I am giving it a c++ function as the callback. This calls the object with 
appropriate arguments. The c++ function that is called is this :

         v8::Handle<v8::Value> SendCallBackArguments(const v8::Arguments& 
args) {
                  // ... code here
        }

Now if i had given it a javascript function, i could have been able to use 
the '*this*' pointer.

How can i get an access to the *this* pointer in *SendCallBackArguments* 
function 
?

Is it args.This() ?

When i tried args.This(). and used it to look for a variable by 
        args.This() ->Has(v8::String::New("parent"))

it gave me false. Although, one of Arguement passed is a buffer, which has 
a toString() function that uses this.parent.

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