From edbae656d63fd115281ee75f3d0096c9b133b03e Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 16 Jul 2009 15:43:03 +0200 Subject: [PATCH] Add IsNearDeath assertion to ObjectWrap destructor --- src/object_wrap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/object_wrap.h b/src/object_wrap.h index 362dd6af50..30a4224f91 100644 --- a/src/object_wrap.h +++ b/src/object_wrap.h @@ -15,6 +15,7 @@ class ObjectWrap { virtual ~ObjectWrap ( ) { if (!handle_.IsEmpty()) { + assert(handle_.IsNearDeath()); handle_->SetInternalField(0, v8::Undefined()); handle_.Dispose(); handle_.Clear();