diff --git a/src/node_external_reference.h b/src/node_external_reference.h index 280f1269d9bc27..37f06e9d30b577 100644 --- a/src/node_external_reference.h +++ b/src/node_external_reference.h @@ -65,6 +65,7 @@ class ExternalReferenceRegistry { V(performance) \ V(process_methods) \ V(process_object) \ + V(report) \ V(task_queue) \ V(url) \ V(util) \ diff --git a/src/node_report_module.cc b/src/node_report_module.cc index 190755a85b2369..160498c6276a3f 100644 --- a/src/node_report_module.cc +++ b/src/node_report_module.cc @@ -1,5 +1,6 @@ #include "env.h" #include "node_errors.h" +#include "node_external_reference.h" #include "node_internals.h" #include "node_options.h" #include "node_report.h" @@ -196,6 +197,26 @@ static void Initialize(Local exports, SetReportOnUncaughtException); } +void RegisterExternalReferences(node::ExternalReferenceRegistry* registry) { + registry->Register(WriteReport); + registry->Register(GetReport); + registry->Register(GetCompact); + registry->Register(SetCompact); + registry->Register(GetDirectory); + registry->Register(SetDirectory); + registry->Register(GetFilename); + registry->Register(SetFilename); + registry->Register(GetSignal); + registry->Register(SetSignal); + registry->Register(ShouldReportOnFatalError); + registry->Register(SetReportOnFatalError); + registry->Register(ShouldReportOnSignal); + registry->Register(SetReportOnSignal); + registry->Register(ShouldReportOnUncaughtException); + registry->Register(SetReportOnUncaughtException); +} + } // namespace report NODE_MODULE_CONTEXT_AWARE_INTERNAL(report, report::Initialize) +NODE_MODULE_EXTERNAL_REFERENCE(report, report::RegisterExternalReferences)