diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-23 09:38:16 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-26 08:23:49 +0200 |
commit | ebbf3936001969905ce28dc588b2c71c3b65c146 (patch) | |
tree | 250f8e12609fe1ad23439d8666d69ba865462100 /src/node_i18n.cc | |
parent | 0d5720bf039007c96b7bad51cd7a22335a5b5c41 (diff) | |
download | android-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_i18n.cc')
-rw-r--r-- | src/node_i18n.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc index d65fc55ed1..7f462d5aea 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -852,10 +852,10 @@ static void GetStringWidth(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(width); } -void Init(Local<Object> target, - Local<Value> unused, - Local<Context> context, - void* priv) { +void Initialize(Local<Object> target, + Local<Value> unused, + Local<Context> context, + void* priv) { Environment* env = Environment::GetCurrent(context); env->SetMethod(target, "toUnicode", ToUnicode); env->SetMethod(target, "toASCII", ToASCII); @@ -875,6 +875,6 @@ void Init(Local<Object> target, } // namespace i18n } // namespace node -NODE_BUILTIN_MODULE_CONTEXT_AWARE(icu, node::i18n::Init) +NODE_BUILTIN_MODULE_CONTEXT_AWARE(icu, node::i18n::Initialize) #endif // NODE_HAVE_I18N_SUPPORT |