From 7df54988e132d1ceb26b4122870993b730ac8b08 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 19 Jul 2019 08:59:35 -0400 Subject: [PATCH] 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 Reviewed-By: Yongsheng Zhang Reviewed-By: Rich Trott Reviewed-By: Jiawen Geng --- src/module_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index f1c819874a3839..bccfc2d2affb79 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -646,7 +646,7 @@ Maybe 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() }); const PackageConfig* pcfg = &entry.first->second; return Just(pcfg); }