summaryrefslogtreecommitdiff
path: root/src/node_perf.cc
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-03-23 09:38:16 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-03-26 08:23:49 +0200
commitebbf3936001969905ce28dc588b2c71c3b65c146 (patch)
tree250f8e12609fe1ad23439d8666d69ba865462100 /src/node_perf.cc
parent0d5720bf039007c96b7bad51cd7a22335a5b5c41 (diff)
downloadandroid-node-v8-ebbf3936001969905ce28dc588b2c71c3b65c146.tar.gz
android-node-v8-ebbf3936001969905ce28dc588b2c71c3b65c146.tar.bz2
android-node-v8-ebbf3936001969905ce28dc588b2c71c3b65c146.zip
src: name all builtin init functions Initialize
This commit renames a few of the builtin modules init functions to Initialize for consistency. PR-URL: https://github.com/nodejs/node/pull/19550 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r--src/node_perf.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 60ab530420..ac17e5b873 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -372,9 +372,9 @@ void Timerify(const FunctionCallbackInfo<Value>& args) {
}
-void Init(Local<Object> target,
- Local<Value> unused,
- Local<Context> context) {
+void Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
performance_state* state = env->performance_state();
@@ -443,4 +443,4 @@ void Init(Local<Object> target,
} // namespace performance
} // namespace node
-NODE_BUILTIN_MODULE_CONTEXT_AWARE(performance, node::performance::Init)
+NODE_BUILTIN_MODULE_CONTEXT_AWARE(performance, node::performance::Initialize)