summaryrefslogtreecommitdiff
path: root/src/node_util.cc
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 /src/node_util.cc
parent02cd7069a8631a324298be9f24771fb0faf23639 (diff)
downloadandroid-node-v8-0c65314e0e8602f4a7e0ace43ebd63de233eac62.tar.gz
android-node-v8-0c65314e0e8602f4a7e0ace43ebd63de233eac62.tar.bz2
android-node-v8-0c65314e0e8602f4a7e0ace43ebd63de233eac62.zip
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>
Diffstat (limited to 'src/node_util.cc')
-rw-r--r--src/node_util.cc5
1 files changed, 4 insertions, 1 deletions
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, _) \