I assumed that you could construct a persistent directly, as the header has
the following statement for the persistent constructor that takes a handle:

"Casts" a plain handle which is known to be a persistent handle to a
persistent handle.

The cast for a persistent takes a persistent, and the persistent construct
that takes a handle requires is explicit, so I did the following:

v8::Persistent< v8::Object > persistent( v8::Object::Cast( *value ) );
v8::Persistent< v8::Object >::Cast( persistent ).ClearWeak();


But that doesn't seem to work. Instead, I've just set the pointer stored in
the object to null, which seems to work for now but feels like a hack.

-- 
Thank you
Abdulla

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to