summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-07-19 08:59:35 -0400
committerMichaƫl Zasso <targos@protonmail.com>2019-07-22 21:21:22 +0200
commit7df54988e132d1ceb26b4122870993b730ac8b08 (patch)
tree733c985d926e09328948c984f84d32ce98558e22
parent9f47242e19a062e6c64f50e0ae0e63ad9490b23a (diff)
downloadandroid-node-v8-7df54988e132d1ceb26b4122870993b730ac8b08.tar.gz
android-node-v8-7df54988e132d1ceb26b4122870993b730ac8b08.tar.bz2
android-node-v8-7df54988e132d1ceb26b4122870993b730ac8b08.zip
src: silence compiler warning
This commit fixes the following warning: warning: missing field 'exports' initializer PR-URL: https://github.com/nodejs/node/pull/28764 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
-rw-r--r--src/module_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index f1c819874a..bccfc2d2af 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -646,7 +646,7 @@ Maybe<const PackageConfig*> GetPackageScopeConfig(Environment* env,
if (pjson_url.path() == last_pjson_url.path()) {
auto entry = env->package_json_cache.emplace(pjson_url.ToFilePath(),
PackageConfig { Exists::No, IsValid::Yes, HasMain::No, "",
- PackageType::None });
+ PackageType::None, Global<Value>() });
const PackageConfig* pcfg = &entry.first->second;
return Just(pcfg);
}