On Sun, Sep 14, 2014 at 7:23 AM, Jane Chen <[email protected]> wrote: > What is the first argument meant for in Function::Call: > > Local<Value> Call(Handle<Value> recv, int argc, Handle<Value> argv[]); > > It seems that passing in current context's global object works for me. But > when do I need to pass in something other than that? > > Thanks!
|recv| is the value of |this| inside the function. Passing in the global object is fine for functions that don't need to be invoked on a particular object. -- -- 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/d/optout.
