21
21
22
22
#include " async_wrap-inl.h"
23
23
#include " env-inl.h"
24
- #include " node.h"
25
24
#include " handle_wrap.h"
25
+ #include " node.h"
26
+ #include " node_external_reference.h"
26
27
#include " string_bytes.h"
27
28
28
-
29
29
namespace node {
30
30
31
31
using v8::Context;
@@ -52,6 +52,7 @@ class FSEventWrap: public HandleWrap {
52
52
Local<Value> unused,
53
53
Local<Context> context,
54
54
void * priv);
55
+ static void RegisterExternalReferences (ExternalReferenceRegistry* registry);
55
56
static void New (const FunctionCallbackInfo<Value>& args);
56
57
static void Start (const FunctionCallbackInfo<Value>& args);
57
58
static void GetInitialized (const FunctionCallbackInfo<Value>& args);
@@ -117,6 +118,12 @@ void FSEventWrap::Initialize(Local<Object> target,
117
118
env->SetConstructorFunction (target, " FSEvent" , t);
118
119
}
119
120
121
+ void FSEventWrap::RegisterExternalReferences (
122
+ ExternalReferenceRegistry* registry) {
123
+ registry->Register (New);
124
+ registry->Register (Start);
125
+ registry->Register (GetInitialized);
126
+ }
120
127
121
128
void FSEventWrap::New (const FunctionCallbackInfo<Value>& args) {
122
129
CHECK (args.IsConstructCall ());
@@ -229,3 +236,5 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
229
236
} // namespace node
230
237
231
238
NODE_MODULE_CONTEXT_AWARE_INTERNAL (fs_event_wrap, node::FSEventWrap::Initialize)
239
+ NODE_MODULE_EXTERNAL_REFERENCE(fs_event_wrap,
240
+ node::FSEventWrap::RegisterExternalReferences)
0 commit comments