Skip to content

Commit fbaf422

Browse files
Flarnakkoopa
authored andcommitted
remove usage of deprecated IsNearDeath (#842)
1 parent 19f08c2 commit fbaf422

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

nan_object_wrap.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ObjectWrap {
2121
return;
2222
}
2323

24-
assert(persistent().IsNearDeath());
2524
persistent().ClearWeak();
2625
persistent().Reset();
2726
}
@@ -124,7 +123,6 @@ class ObjectWrap {
124123
WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
125124
ObjectWrap* wrap = info.GetParameter();
126125
assert(wrap->refs_ == 0);
127-
assert(wrap->handle_.IsNearDeath());
128126
wrap->handle_.Reset();
129127
delete wrap;
130128
}

0 commit comments

Comments
 (0)