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