Skip to content

Commit

Permalink
src: silence compiler warning
Browse files Browse the repository at this point in the history
This commit fixes the following warning:

warning: missing field 'exports' initializer

PR-URL: #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>
  • Loading branch information
cjihrig authored and targos committed Jul 22, 2019
1 parent 9f47242 commit 7df5498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7df5498

Please sign in to comment.