Example:

root_context = Context::New();
Context::Scope context_scope(root_context);
obj = Object::New();
root_context->Global()->Set(String::New("myobj"), obj);

second_context = Context::New(0, Handle<ObjectTemplate>(), obj); //
<--------- assert failed!

#
# Fatal error in ..\..\src\bootstrapper.cc, line 538
# CHECK(global_object->IsJSGlobalObject()) failed
#

So how to create a context that uses a existed object as global object?
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to