Thank you!!! It works now. On May 10, 1:43 pm, Stephan Beal <[email protected]> wrote: > On Mon, May 10, 2010 at 10:22 PM, vlad <[email protected]> wrote: > > > v8::Handle<v8::Value> ret = eval_func->Call(eval_func, 1, args); > > i _think_ what you're looking for is: > > v8::Handle<v8::Function> eval_func = > v8::Handle<v8::Function>::Cast(global->Get(v8::String::New("eval"))); > ... > v8::Handle<v8::Value> ret = eval_func->Call(global, 1, args); > > Remember that the first argument to Call() is the "this" object, and > for eval() you want that to be the global. > > PS: if you are only passing only one object as the args list then you > don't need the extra intermediary array. i.e. > > Call(..., 1, &theArg) > > will do. > -- > ----- stephan bealhttp://wanderinghorse.net/home/stephan/ > > -- > 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
