fs: use Persistent::Reset() for resetting handles

PR-URL: https://github.com/nodejs/node/pull/18650
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Anna Henningsen 2018-02-08 19:35:16 +01:00 committed by Ruben Bridgewater
parent 703e37cf3f
commit 3e1e450f92
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -152,8 +152,8 @@ class FileHandle : public AsyncWrap {
}
~CloseReq() {
uv_fs_req_cleanup(req());
promise_.Empty();
ref_.Empty();
promise_.Reset();
ref_.Reset();
}
FileHandle* file_handle();