diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-08 11:59:08 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-03-10 17:16:13 -0400 |
commit | 806d3d71e25658c3df770d677c6ad73b9a7b13ae (patch) | |
tree | c62f80899bdad185a7a67bf3eec0cedc1f07533a /src/node_report_module.cc | |
parent | d73d86166541dd121235f708f83d2ad9cf24b997 (diff) | |
download | node-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.cc | 5 |
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); |