summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2018-11-29 17:24:47 -0800
committerSam Roberts <vieuxtech@gmail.com>2018-12-03 19:44:15 -0800
commit0c65314e0e8602f4a7e0ace43ebd63de233eac62 (patch)
treea438119eee16a3d3d3427ebf1845ee5df1e626a1
parent02cd7069a8631a324298be9f24771fb0faf23639 (diff)
downloadnode-new-0c65314e0e8602f4a7e0ace43ebd63de233eac62.tar.gz
src: fix type mismatch warnings from missing priv
Registration initialization functions are expected to have a 4th argument, a void*, so add them where necessary to fix the warnings. PR-URL: https://github.com/nodejs/node/pull/24737 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r--src/async_wrap.cc3
-rw-r--r--src/async_wrap.h3
-rw-r--r--src/bootstrapper.cc3
-rw-r--r--src/cares_wrap.cc3
-rw-r--r--src/fs_event_wrap.cc6
-rw-r--r--src/heap_utils.cc3
-rw-r--r--src/js_stream.cc3
-rw-r--r--src/js_stream.h3
-rw-r--r--src/module_wrap.cc3
-rw-r--r--src/module_wrap.h3
-rw-r--r--src/node_buffer.cc3
-rw-r--r--src/node_contextify.cc3
-rw-r--r--src/node_domain.cc3
-rw-r--r--src/node_native_module.cc3
-rw-r--r--src/node_native_module.h3
-rw-r--r--src/node_options.cc3
-rw-r--r--src/node_os.cc3
-rw-r--r--src/node_perf.cc3
-rw-r--r--src/node_serdes.cc3
-rw-r--r--src/node_trace_events.cc10
-rw-r--r--src/node_types.cc3
-rw-r--r--src/node_util.cc5
-rw-r--r--src/node_v8.cc3
-rw-r--r--src/pipe_wrap.cc3
-rw-r--r--src/pipe_wrap.h3
-rw-r--r--src/process_wrap.cc3
-rw-r--r--src/signal_wrap.cc3
-rw-r--r--src/spawn_sync.cc3
-rw-r--r--src/spawn_sync.h3
-rw-r--r--src/stream_pipe.cc3
-rw-r--r--src/stream_wrap.cc3
-rw-r--r--src/stream_wrap.h3
-rw-r--r--src/string_decoder.cc3
-rw-r--r--src/tcp_wrap.cc3
-rw-r--r--src/tcp_wrap.h3
-rw-r--r--src/timers.cc3
-rw-r--r--src/tls_wrap.cc3
-rw-r--r--src/tls_wrap.h3
-rw-r--r--src/tty_wrap.cc3
-rw-r--r--src/tty_wrap.h3
-rw-r--r--src/udp_wrap.cc3
-rw-r--r--src/udp_wrap.h3
-rw-r--r--src/uv.cc3
43 files changed, 96 insertions, 45 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 2c9aa3cb88..e197319100 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -440,7 +440,8 @@ Local<FunctionTemplate> AsyncWrap::GetConstructorTemplate(Environment* env) {
void AsyncWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
HandleScope scope(isolate);
diff --git a/src/async_wrap.h b/src/async_wrap.h
index e3d5748bbc..523d620b0a 100644
--- a/src/async_wrap.h
+++ b/src/async_wrap.h
@@ -116,7 +116,8 @@ class AsyncWrap : public BaseObject {
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
static void GetAsyncId(const v8::FunctionCallbackInfo<v8::Value>& args);
static void PushAsyncIds(const v8::FunctionCallbackInfo<v8::Value>& args);
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 93c1035617..2c8212177b 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -171,7 +171,8 @@ namespace symbols {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
#define V(PropertyName, StringValue) \
target->Set(env->context(), \
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index e5d0319fa1..a3bcdf8953 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -2172,7 +2172,8 @@ void StrError(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "getaddrinfo", GetAddrInfo);
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index 057445776a..249a4bb973 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -52,7 +52,8 @@ class FSEventWrap: public HandleWrap {
public:
static void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context);
+ Local<Context> context,
+ void* priv);
static void New(const FunctionCallbackInfo<Value>& args);
static void Start(const FunctionCallbackInfo<Value>& args);
static void GetInitialized(const FunctionCallbackInfo<Value>& args);
@@ -95,7 +96,8 @@ void FSEventWrap::GetInitialized(const FunctionCallbackInfo<Value>& args) {
void FSEventWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
auto fsevent_string = FIXED_ONE_BYTE_STRING(env->isolate(), "FSEvent");
diff --git a/src/heap_utils.cc b/src/heap_utils.cc
index d1e3fad098..84cbf07c1e 100644
--- a/src/heap_utils.cc
+++ b/src/heap_utils.cc
@@ -247,7 +247,8 @@ void CreateHeapDump(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethodNoSideEffect(target, "buildEmbedderGraph", BuildEmbedderGraph);
diff --git a/src/js_stream.cc b/src/js_stream.cc
index 31e15ec308..e4137079fa 100644
--- a/src/js_stream.cc
+++ b/src/js_stream.cc
@@ -196,7 +196,8 @@ void JSStream::EmitEOF(const FunctionCallbackInfo<Value>& args) {
void JSStream::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
diff --git a/src/js_stream.h b/src/js_stream.h
index 6612e558ae..482373016d 100644
--- a/src/js_stream.h
+++ b/src/js_stream.h
@@ -14,7 +14,8 @@ class JSStream : public AsyncWrap, public StreamBase {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
bool IsAlive() override;
bool IsClosing() override;
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 9a3c1cb2e2..3860ec745e 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -821,7 +821,8 @@ void ModuleWrap::SetInitializeImportMetaObjectCallback(
void ModuleWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
diff --git a/src/module_wrap.h b/src/module_wrap.h
index 0e352c6575..6d231631d6 100644
--- a/src/module_wrap.h
+++ b/src/module_wrap.h
@@ -38,7 +38,8 @@ class ModuleWrap : public BaseObject {
static const std::string EXTENSIONS[];
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
static void HostInitializeImportMetaObjectCallback(
v8::Local<v8::Context> context,
v8::Local<v8::Module> module,
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index 59605ff50a..3c2acdbb04 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -1085,7 +1085,8 @@ void SetupBufferJS(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "setupBufferJS", SetupBufferJS);
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index f12d5e7d66..fc89f58f8b 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -1075,7 +1075,8 @@ void ContextifyContext::CompileFunction(
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
ContextifyContext::Init(env, target);
ContextifyScript::Init(env, target);
diff --git a/src/node_domain.cc b/src/node_domain.cc
index f4f585ac4f..b29ca1db05 100644
--- a/src/node_domain.cc
+++ b/src/node_domain.cc
@@ -22,7 +22,8 @@ void Enable(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "enable", Enable);
diff --git a/src/node_native_module.cc b/src/node_native_module.cc
index 77763229ce..6e5f08e354 100644
--- a/src/node_native_module.cc
+++ b/src/node_native_module.cc
@@ -317,7 +317,8 @@ MaybeLocal<Value> NativeModuleLoader::LookupAndCompile(
void NativeModuleLoader::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(
diff --git a/src/node_native_module.h b/src/node_native_module.h
index 76725ec0f2..fc0e33c735 100644
--- a/src/node_native_module.h
+++ b/src/node_native_module.h
@@ -37,7 +37,8 @@ class NativeModuleLoader {
NativeModuleLoader();
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
v8::Local<v8::Object> GetSourceObject(v8::Local<v8::Context> context) const;
v8::Local<v8::String> GetSource(v8::Isolate* isolate, const char* id) const;
diff --git a/src/node_options.cc b/src/node_options.cc
index 5f0d0e5cf7..2168b99075 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -483,7 +483,8 @@ void GetOptions(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
env->SetMethodNoSideEffect(target, "getOptions", GetOptions);
diff --git a/src/node_os.cc b/src/node_os.cc
index fa38040e3a..77693a47ec 100644
--- a/src/node_os.cc
+++ b/src/node_os.cc
@@ -446,7 +446,8 @@ static void GetPriority(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "getHostname", GetHostname);
env->SetMethod(target, "getLoadAvg", GetLoadAvg);
diff --git a/src/node_perf.cc b/src/node_perf.cc
index 5881b2be69..2b7faccec9 100644
--- a/src/node_perf.cc
+++ b/src/node_perf.cc
@@ -376,7 +376,8 @@ void Timerify(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
performance_state* state = env->performance_state();
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
index 631b8ed95b..5d5d002e9d 100644
--- a/src/node_serdes.cc
+++ b/src/node_serdes.cc
@@ -440,7 +440,8 @@ void DeserializerContext::ReadRawBytes(
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> ser =
env->NewFunctionTemplate(SerializerContext::New);
diff --git a/src/node_trace_events.cc b/src/node_trace_events.cc
index 94ed1ec5a1..1dfb1de2fc 100644
--- a/src/node_trace_events.cc
+++ b/src/node_trace_events.cc
@@ -21,6 +21,11 @@ using v8::Value;
class NodeCategorySet : public BaseObject {
public:
+ static void Initialize(Local<Object> target,
+ Local<Value> unused,
+ Local<Context> context,
+ void* priv);
+
static void New(const FunctionCallbackInfo<Value>& args);
static void Enable(const FunctionCallbackInfo<Value>& args);
static void Disable(const FunctionCallbackInfo<Value>& args);
@@ -97,7 +102,7 @@ void GetEnabledCategories(const FunctionCallbackInfo<Value>& args) {
}
}
-void Initialize(Local<Object> target,
+void NodeCategorySet::Initialize(Local<Object> target,
Local<Value> unused,
Local<Context> context,
void* priv) {
@@ -136,4 +141,5 @@ void Initialize(Local<Object> target,
} // namespace node
-NODE_MODULE_CONTEXT_AWARE_INTERNAL(trace_events, node::Initialize)
+NODE_MODULE_CONTEXT_AWARE_INTERNAL(trace_events,
+ node::NodeCategorySet::Initialize)
diff --git a/src/node_types.cc b/src/node_types.cc
index 97f6ef4e28..048c47493d 100644
--- a/src/node_types.cc
+++ b/src/node_types.cc
@@ -62,7 +62,8 @@ static void IsBoxedPrimitive(const FunctionCallbackInfo<Value>& args) {
void InitializeTypes(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
#define V(type) env->SetMethodNoSideEffect(target, \
diff --git a/src/node_util.cc b/src/node_util.cc
index 810bb1929b..4a426ddadb 100644
--- a/src/node_util.cc
+++ b/src/node_util.cc
@@ -56,6 +56,7 @@ static void GetOwnNonIndexProperties(
}
static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
+ Environment* env = Environment::GetCurrent(args);
// Return undefined if it's not a Promise.
if (!args[0]->IsPromise())
return;
@@ -74,6 +75,7 @@ static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
}
static void GetProxyDetails(const FunctionCallbackInfo<Value>& args) {
+ Environment* env = Environment::GetCurrent(args);
// Return undefined if it's not a proxy.
if (!args[0]->IsProxy())
return;
@@ -194,7 +196,8 @@ void EnqueueMicrotask(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
#define V(name, _) \
diff --git a/src/node_v8.cc b/src/node_v8.cc
index ab453134fa..c61f1e6600 100644
--- a/src/node_v8.cc
+++ b/src/node_v8.cc
@@ -119,7 +119,8 @@ void SetFlagsFromString(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethodNoSideEffect(target, "cachedDataVersionTag",
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 50e80b45a4..6259cbdd19 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -69,7 +69,8 @@ Local<Object> PipeWrap::Instantiate(Environment* env,
void PipeWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
diff --git a/src/pipe_wrap.h b/src/pipe_wrap.h
index 05a5ba6e11..b98d850439 100644
--- a/src/pipe_wrap.h
+++ b/src/pipe_wrap.h
@@ -43,7 +43,8 @@ class PipeWrap : public ConnectionWrap<PipeWrap, uv_pipe_t> {
SocketType type);
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
SET_NO_MEMORY_INFO()
SET_MEMORY_INFO_NAME(PipeWrap)
diff --git a/src/process_wrap.cc b/src/process_wrap.cc
index 79d661c83f..d0514d64e0 100644
--- a/src/process_wrap.cc
+++ b/src/process_wrap.cc
@@ -49,7 +49,8 @@ class ProcessWrap : public HandleWrap {
public:
static void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> constructor = env->NewFunctionTemplate(New);
constructor->InstanceTemplate()->SetInternalFieldCount(1);
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc
index 613ee0926f..93f86f5d79 100644
--- a/src/signal_wrap.cc
+++ b/src/signal_wrap.cc
@@ -43,7 +43,8 @@ class SignalWrap : public HandleWrap {
public:
static void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> constructor = env->NewFunctionTemplate(New);
constructor->InstanceTemplate()->SetInternalFieldCount(1);
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index 21e2b2ffb3..4aad9d8a14 100644
--- a/src/spawn_sync.cc
+++ b/src/spawn_sync.cc
@@ -365,7 +365,8 @@ void SyncProcessStdioPipe::CloseCallback(uv_handle_t* handle) {
void SyncProcessRunner::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "spawn", Spawn);
}
diff --git a/src/spawn_sync.h b/src/spawn_sync.h
index 5b04d94b47..53fdee11d5 100644
--- a/src/spawn_sync.h
+++ b/src/spawn_sync.h
@@ -141,7 +141,8 @@ class SyncProcessRunner {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
static void Spawn(const v8::FunctionCallbackInfo<v8::Value>& args);
private:
diff --git a/src/stream_pipe.cc b/src/stream_pipe.cc
index 0b00f225d8..931972a48c 100644
--- a/src/stream_pipe.cc
+++ b/src/stream_pipe.cc
@@ -248,7 +248,8 @@ namespace {
void InitializeStreamPipe(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
// Create FunctionTemplate for FileHandle::CloseReq
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 0435ae3ac1..ae54b019fe 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -52,7 +52,8 @@ using v8::Value;
void LibuvStreamWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
auto is_construct_call_callback =
diff --git a/src/stream_wrap.h b/src/stream_wrap.h
index 98f0ca4ac4..19366ff4fb 100644
--- a/src/stream_wrap.h
+++ b/src/stream_wrap.h
@@ -37,7 +37,8 @@ class LibuvStreamWrap : public HandleWrap, public StreamBase {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
int GetFD() override;
bool IsAlive() override;
diff --git a/src/string_decoder.cc b/src/string_decoder.cc
index cc38cd927a..a83d6623b4 100644
--- a/src/string_decoder.cc
+++ b/src/string_decoder.cc
@@ -276,7 +276,8 @@ void FlushData(const FunctionCallbackInfo<Value>& args) {
void InitializeStringDecoder(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 504fda3de6..5adab06df4 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -73,7 +73,8 @@ Local<Object> TCPWrap::Instantiate(Environment* env,
void TCPWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
diff --git a/src/tcp_wrap.h b/src/tcp_wrap.h
index 3cbeae6d64..a554832841 100644
--- a/src/tcp_wrap.h
+++ b/src/tcp_wrap.h
@@ -42,7 +42,8 @@ class TCPWrap : public ConnectionWrap<TCPWrap, uv_tcp_t> {
SocketType type);
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
SET_NO_MEMORY_INFO()
SET_SELF_SIZE(TCPWrap)
diff --git a/src/timers.cc b/src/timers.cc
index e9daf8d37c..f0ee1db415 100644
--- a/src/timers.cc
+++ b/src/timers.cc
@@ -43,7 +43,8 @@ void ToggleImmediateRef(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "getLibuvNow", GetLibuvNow);
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index 52d4e73813..3995c16d95 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -871,7 +871,8 @@ void TLSWrap::MemoryInfo(MemoryTracker* tracker) const {
void TLSWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "wrap", TLSWrap::Wrap);
diff --git a/src/tls_wrap.h b/src/tls_wrap.h
index 4c47cd8119..13f2bc1c71 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -54,7 +54,8 @@ class TLSWrap : public AsyncWrap,
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
int GetFD() override;
bool IsAlive() override;
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 2523f57b2d..dc9dc35142 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -43,7 +43,8 @@ using v8::Value;
void TTYWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<String> ttyString = FIXED_ONE_BYTE_STRING(env->isolate(), "TTY");
diff --git a/src/tty_wrap.h b/src/tty_wrap.h
index f794e2112f..63a340fd8d 100644
--- a/src/tty_wrap.h
+++ b/src/tty_wrap.h
@@ -34,7 +34,8 @@ class TTYWrap : public LibuvStreamWrap {
public:
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
SET_NO_MEMORY_INFO()
SET_MEMORY_INFO_NAME(TTYWrap)
diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc
index b4c859e594..2e076e26b9 100644
--- a/src/udp_wrap.cc
+++ b/src/udp_wrap.cc
@@ -88,7 +88,8 @@ UDPWrap::UDPWrap(Environment* env, Local<Object> object)
void UDPWrap::Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Local<FunctionTemplate> t = env->NewFunctionTemplate(New);
diff --git a/src/udp_wrap.h b/src/udp_wrap.h
index e6b575f74a..6347cdea87 100644
--- a/src/udp_wrap.h
+++ b/src/udp_wrap.h
@@ -39,7 +39,8 @@ class UDPWrap: public HandleWrap {
};
static void Initialize(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
- v8::Local<v8::Context> context);
+ v8::Local<v8::Context> context,
+ void* priv);
static void GetFD(const v8::FunctionCallbackInfo<v8::Value>& args);
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
diff --git a/src/uv.cc b/src/uv.cc
index 5405b2058a..79c221f4df 100644
--- a/src/uv.cc
+++ b/src/uv.cc
@@ -60,7 +60,8 @@ void ErrName(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
Isolate* isolate = env->isolate();
target->Set(env->context(),