Success! I crashed because I called this function:

    static V8PerContextData* from(v8::Handle<v8::Context> context)
    {
        return 
static_cast<V8PerContextData*>(context->GetAlignedPointerFromEmbedderData(v8ContextPerContextDataIndex));
    }

before the call to set the EmbedderData value.  

I can avoid this crash but I would also like to be able to ensure that the 
same problem does not haunt me again. Thus I would like to check the return 
value of from() like:
    V8PerContextData* data = V8PerContextData::from(context);
    ASSERT(data);
However this test does *not* prevent the crash.  I seem to get back a valid 
pointer to garbage memory. Any way to test for that case?

jjb

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