diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-21 15:24:18 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-21 15:24:18 +0100 |
commit | d4024815b7d55005c3ec25c74cf647f7eba1d5cc (patch) | |
tree | b86653a53494704be52a30b175886bf9ed054cd4 /src/async_wrap.cc | |
parent | 992703f2b50f6b3483e9b930737d177b9e01256d (diff) | |
download | node-new-d4024815b7d55005c3ec25c74cf647f7eba1d5cc.tar.gz |
src: remove unnecessary Reset() calls
The previous commit made persistent handles auto-reset on destruction.
This commit removes the Reset() calls that are now no longer necessary.
PR-URL: https://github.com/nodejs/node/pull/18656
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r-- | src/async_wrap.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc index c23535f094..57f61d9492 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -425,8 +425,6 @@ void AsyncWrap::WeakCallback(const v8::WeakCallbackInfo<DestroyParam>& info) { if (val->IsFalse()) { AsyncWrap::EmitDestroy(env, p->asyncId); } - p->target.Reset(); - p->propBag.Reset(); delete p; } |