Add IsNearDeath assertion to ObjectWrap destructor

This commit is contained in:
Ryan committed 2009-07-16 15:43:03 +02:00
1 parent 56c785ceae
commit edbae656d6
1 file changed
+1
+1
View File
@@ -15,6 +15,7 @@ class ObjectWrap {
virtual ~ObjectWrap ( ) {
if (!handle_.IsEmpty()) {
assert(handle_.IsNearDeath());
handle_->SetInternalField(0, v8::Undefined());
handle_.Dispose();
handle_.Clear();