From ebbf3936001969905ce28dc588b2c71c3b65c146 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 23 Mar 2018 09:38:16 +0100 Subject: 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 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: James M Snell --- src/node_perf.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/node_perf.cc') 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& args) { } -void Init(Local target, - Local unused, - Local context) { +void Initialize(Local target, + Local unused, + Local context) { Environment* env = Environment::GetCurrent(context); Isolate* isolate = env->isolate(); performance_state* state = env->performance_state(); @@ -443,4 +443,4 @@ void Init(Local target, } // namespace performance } // namespace node -NODE_BUILTIN_MODULE_CONTEXT_AWARE(performance, node::performance::Init) +NODE_BUILTIN_MODULE_CONTEXT_AWARE(performance, node::performance::Initialize) -- cgit v1.2.3