diff options
author | cjihrig <cjihrig@gmail.com> | 2019-07-19 15:59:35 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-07-22 17:55:11 +0300 |
commit | 65c2b2ce392b5304cb7d5c3d10de5db1b7b31dbe (patch) | |
tree | 35cf113a193a451d096d3cc854bdf5bad1b64022 /src/module_wrap.cc | |
parent | b686bd79dcb750ca76a02100519ef728fab291d5 (diff) |
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>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index fe4b7b7c455..7df91bb8704 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); } |