2121
2222#include " async_wrap-inl.h"
2323#include " env-inl.h"
24- #include " node.h"
2524#include " handle_wrap.h"
25+ #include " node.h"
26+ #include " node_external_reference.h"
2627#include " string_bytes.h"
2728
28-
2929namespace node {
3030
3131using v8::Context;
@@ -52,6 +52,7 @@ class FSEventWrap: public HandleWrap {
5252 Local<Value> unused,
5353 Local<Context> context,
5454 void * priv);
55+ static void RegisterExternalReferences (ExternalReferenceRegistry* registry);
5556 static void New (const FunctionCallbackInfo<Value>& args);
5657 static void Start (const FunctionCallbackInfo<Value>& args);
5758 static void GetInitialized (const FunctionCallbackInfo<Value>& args);
@@ -117,6 +118,12 @@ void FSEventWrap::Initialize(Local<Object> target,
117118 env->SetConstructorFunction (target, " FSEvent" , t);
118119}
119120
121+ void FSEventWrap::RegisterExternalReferences (
122+ ExternalReferenceRegistry* registry) {
123+ registry->Register (New);
124+ registry->Register (Start);
125+ registry->Register (GetInitialized);
126+ }
120127
121128void FSEventWrap::New (const FunctionCallbackInfo<Value>& args) {
122129 CHECK (args.IsConstructCall ());
@@ -229,3 +236,5 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
229236} // namespace node
230237
231238NODE_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