Hi,

I am developing an addon for node.js using V8. 
I have a C structure enclosing Persistent<Function>. 
 
https://github.com/aerospike/aerospike-client-nodejs/blob/master/src/main/client/get.cc.

I allocate this C structure using `new`. When I compile the addon in 
Release mode, the val_ structure inside Persistent<Function> is initialized 
to NULL. When I compile the addon in debug mode, 
the same val_ structure is initialized to garbage value. Subsequently, I 
try to assign a Local<Function> to this Persistent<Function>, the V8 code 
tries to free up the existing val_, which is some garbage. 
This crashes the addon module in debug mode. I would like understand the 
difference in behavior for release and debug mode compilation. And the 
reason behind val_ getting initialized to garbage value.

Thanks

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

Reply via email to