summaryrefslogtreecommitdiff
path: root/src/node_report_module.cc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-08 11:59:08 -0500
committercjihrig <cjihrig@gmail.com>2019-03-10 17:16:13 -0400
commit806d3d71e25658c3df770d677c6ad73b9a7b13ae (patch)
treec62f80899bdad185a7a67bf3eec0cedc1f07533a /src/node_report_module.cc
parentd73d86166541dd121235f708f83d2ad9cf24b997 (diff)
downloadnode-new-806d3d71e25658c3df770d677c6ad73b9a7b13ae.tar.gz
report: rename triggerReport() to writeReport()
writeReport() is more descriptive of what the function does. PR-URL: https://github.com/nodejs/node/pull/26527 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_report_module.cc')
-rw-r--r--src/node_report_module.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node_report_module.cc b/src/node_report_module.cc
index 202730d3b6..94894b0f5e 100644
--- a/src/node_report_module.cc
+++ b/src/node_report_module.cc
@@ -30,8 +30,7 @@ using v8::Object;
using v8::String;
using v8::Value;
-// External JavaScript API for triggering a report
-void TriggerReport(const FunctionCallbackInfo<Value>& info) {
+void WriteReport(const FunctionCallbackInfo<Value>& info) {
Environment* env = Environment::GetCurrent(info);
Isolate* isolate = env->isolate();
HandleScope scope(isolate);
@@ -161,7 +160,7 @@ static void Initialize(Local<Object> exports,
Local<Context> context) {
Environment* env = Environment::GetCurrent(context);
- env->SetMethod(exports, "triggerReport", TriggerReport);
+ env->SetMethod(exports, "writeReport", WriteReport);
env->SetMethod(exports, "getReport", GetReport);
env->SetMethod(exports, "getDirectory", GetDirectory);
env->SetMethod(exports, "setDirectory", SetDirectory);