Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrickyes <mail@zhoumq.cn>2020-04-28 21:00:35 +0300
committerAnna Henningsen <anna@addaleax.net>2020-05-09 08:59:08 +0300
commitbe7fd2d517abd852d9ee3cf099fb007370af1910 (patch)
treee8cbf46afa10ac149155622d69df9e9953197632 /src/fs_event_wrap.cc
parent28e6626ce7020b490438e3ee8a8188a59c5f856f (diff)
fs: add .ref() and .unref() methods to watcher classes
PR-URL: https://github.com/nodejs/node/pull/33134 Fixes: https://github.com/nodejs/node/issues/33096 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index 9b6c553a630..faa650b7a10 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -101,9 +101,8 @@ void FSEventWrap::Initialize(Local<Object> target,
FSEventWrap::kInternalFieldCount);
t->SetClassName(fsevent_string);
- t->Inherit(AsyncWrap::GetConstructorTemplate(env));
+ t->Inherit(HandleWrap::GetConstructorTemplate(env));
env->SetProtoMethod(t, "start", Start);
- env->SetProtoMethod(t, "close", Close);
Local<FunctionTemplate> get_initialized_templ =
FunctionTemplate::New(env->isolate(),