This is a very brief question about V8. I know how to bind function 
templates to a context at the time creating that context.

v8::Isolate* isolate = v8::Isolate::GetCurrent();
> v8::HandleScope handle_scope(isolate);
> globals = v8::Persistent<v8::ObjectTemplate>::New(isolate, 
> v8::ObjectTemplate::New());
> globals->Set(v8::String::New(Name.c_str()), 
> v8::FunctionTemplate::New(function));
> context = v8::Context::New(NULL, globals);
> context->Enter();
>

But is there a way to bind C++ functions to an already created context at 
runtime? Or maybe it is possible to recreate the context and adopt the 
state of the old context to a new one?

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