summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Farias <bradley.meck@gmail.com>2017-09-08 08:50:44 -0500
committerJames M Snell <jasnell@gmail.com>2017-09-15 15:29:05 -0700
commit0fc402b99213a47f973a0a22d1ee01662fc3d7d9 (patch)
treeebb465921e701be83ef659b9d40dadd4b4879e4e
parent2e8217c64e7bca1e982c82565faa7190cf01c355 (diff)
downloadandroid-node-v8-0fc402b99213a47f973a0a22d1ee01662fc3d7d9.tar.gz
android-node-v8-0fc402b99213a47f973a0a22d1ee01662fc3d7d9.tar.bz2
android-node-v8-0fc402b99213a47f973a0a22d1ee01662fc3d7d9.zip
module: coverity fixes for ESM C++
PR-URL: https://github.com/nodejs/node/pull/15275 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--src/module_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 05bbe04ef2..cd3cc2fde0 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -325,7 +325,7 @@ inline const struct read_result read_file(uv_file file) {
}
struct file_check {
bool failed = true;
- uv_file file;
+ uv_file file = -1;
} file_check;
inline const struct file_check check_file(URL search,
bool close = false,
@@ -461,7 +461,7 @@ URL Resolve(std::string specifier, URL* base, bool read_pkg_json) {
} else {
return resolve_module(specifier, base);
}
- return URL("");
+ UNREACHABLE();
}
void ModuleWrap::Resolve(const FunctionCallbackInfo<Value>& args) {