Ok, I figured it out. I had to call GetFunction().
v8::Local<v8::Object> global = context->Global();
> global->Set(v8::String::New("print"), v8::FunctionTemplate::New(
> Print)->GetFunction());
It's working now. Thanks for the help. I am happy that V8 supports adding
functions to the global object on the fly.
--
--
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.