mirror of https://github.com/nodejs/node.git
Add IsNearDeath assertion to ObjectWrap destructor
parent
56c785ceae
commit
edbae656d6
|
@ -15,6 +15,7 @@ class ObjectWrap {
|
|||
|
||||
virtual ~ObjectWrap ( ) {
|
||||
if (!handle_.IsEmpty()) {
|
||||
assert(handle_.IsNearDeath());
|
||||
handle_->SetInternalField(0, v8::Undefined());
|
||||
handle_.Dispose();
|
||||
handle_.Clear();
|
||||
|
|
Loading…
Reference in New Issue