Skip to content

Commit

Permalink
remove usage of deprecated IsNearDeath (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flarna authored and kkoopa committed Mar 24, 2019
1 parent 19f08c2 commit fbaf422
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nan_object_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class ObjectWrap {
return;
}

assert(persistent().IsNearDeath());
persistent().ClearWeak();
persistent().Reset();
}
Expand Down Expand Up @@ -124,7 +123,6 @@ class ObjectWrap {
WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
ObjectWrap* wrap = info.GetParameter();
assert(wrap->refs_ == 0);
assert(wrap->handle_.IsNearDeath());
wrap->handle_.Reset();
delete wrap;
}
Expand Down

0 comments on commit fbaf422

Please sign in to comment.