mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user