Add IsNearDeath assertion to ObjectWrap destructor

This commit is contained in:
Ryan
2009-07-16 15:43:03 +02:00
parent 56c785ceae
commit edbae656d6

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();