summaryrefslogtreecommitdiff
path: root/src/node_http_parser.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_http_parser.cc
parent0d5720bf039007c96b7bad51cd7a22335a5b5c41 (diff)
downloadnode-new-ebbf3936001969905ce28dc588b2c71c3b65c146.tar.gz
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_http_parser.cc')
-rw-r--r--src/node_http_parser.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 8ab13e0734..7fddb747cd 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -728,10 +728,10 @@ const struct http_parser_settings Parser::settings = {
};
-void InitHttpParser(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);
Local<FunctionTemplate> t = env->NewFunctionTemplate(Parser::New);
t->InstanceTemplate()->SetInternalFieldCount(1);
@@ -778,4 +778,4 @@ void InitHttpParser(Local<Object> target,
} // anonymous namespace
} // namespace node
-NODE_BUILTIN_MODULE_CONTEXT_AWARE(http_parser, node::InitHttpParser)
+NODE_BUILTIN_MODULE_CONTEXT_AWARE(http_parser, node::Initialize)