diff --git a/src/node_report_module.cc b/src/node_report_module.cc index 31974f25104046..cf17db62db235b 100644 --- a/src/node_report_module.cc +++ b/src/node_report_module.cc @@ -204,7 +204,7 @@ static void Initialize(Local exports, Local unused, Local context) { Environment* env = Environment::GetCurrent(context); - std::shared_ptr options = env->isolate_data()->options(); + env->SetMethod(exports, "triggerReport", TriggerReport); env->SetMethod(exports, "getReport", GetReport); env->SetMethod(exports, "syncConfig", SyncConfig);