The first parameter to Function::Call() is:
    Handle<Object> recv,

It it my understanding that it will be the 'this' value in the function.

What should I pass when I am calling a plain (non object related) function.

An empty handle causes a segfault.

I have been using Context::GetCurrent()->Global().

Perhaps Null() or Undefined() would be better though I have not tried those.

-- 
Bryan White

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

Reply via email to