I wish to use my global object, so I create a object before context is
created, like as:
Handle<Object> global = Object::New(); // ---------> CRASH, assert
failed.
...
Persistent<Context> context = Context::New(0,
Handle<ObjectTemplate>(), global);
but the first line will crash. There is In call stacks:
> test.exe!v8::internal::Array::length()
test.exe!v8::internal::FixedArray::get(int index=0x00000004)
test.exe!v8::internal::Context::global()
test.exe!v8::internal::Context::global_context()
test.exe!v8::internal::Top::object_function()
test.exe!v8::Object::New()
test.exe!wmain(int argc=0x00000001, wchar_t * * argv=0x01e62f60)
It seems that the #FIRST# context can't use user-defined global
object. Any iders are here?
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---