diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-02-08 21:35:16 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-02-16 19:26:21 +0300 |
commit | 3e1e450f92f3a605bfad125d1f4288ccaa83d09b (patch) | |
tree | 2dc0445a406c91854e8a875450ee35e2cd4110b8 /src/node_file.h | |
parent | 703e37cf3fb163a4630a10f32bf5d5ec35142019 (diff) |
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>
Diffstat (limited to 'src/node_file.h')
-rw-r--r-- | src/node_file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_file.h b/src/node_file.h index b76caa1467b..094963c53ac 100644 --- a/src/node_file.h +++ b/src/node_file.h @@ -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(); |