On Thu, Mar 13, 2014 at 7:56 PM, Jane Chen <[email protected]> wrote: > You were right. context was empty. But I created it right before accessing > it: > > // Create context > v8::Local<v8::Context> context = v8::Context::New(isolate, NULL, global); > // Set context data > context->SetAlignedPointerInEmbedderData(0,(void*)hStaticEnv.get()); > > So what am I missing?
Could be a number of things: V8 may have run out of memory, maybe global is an empty handle, perhaps there's an exception pending, something else. I suggest that you add a `TryCatch try_catch` at the start and liberally check that `try_catch.HasCaught() == false`. -- -- 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/d/optout.
