diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-23 11:38:16 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-03-26 09:23:49 +0300 |
commit | ebbf3936001969905ce28dc588b2c71c3b65c146 (patch) | |
tree | 250f8e12609fe1ad23439d8666d69ba865462100 /src/inspector_js_api.cc | |
parent | 0d5720bf039007c96b7bad51cd7a22335a5b5c41 (diff) |
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/inspector_js_api.cc')
-rw-r--r-- | src/inspector_js_api.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc index 3d806d71ef9..9a380bb2df2 100644 --- a/src/inspector_js_api.cc +++ b/src/inspector_js_api.cc @@ -296,8 +296,8 @@ void Url(const FunctionCallbackInfo<Value>& args) { args.GetReturnValue().Set(OneByteString(env->isolate(), url.c_str())); } -void InitInspectorBindings(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); { auto obj = Object::New(env->isolate()); @@ -341,4 +341,4 @@ void InitInspectorBindings(Local<Object> target, Local<Value> unused, } // namespace node NODE_BUILTIN_MODULE_CONTEXT_AWARE(inspector, - node::inspector::InitInspectorBindings); + node::inspector::Initialize); |