Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraisinten <raisinten@gmail.com>2020-11-16 15:48:38 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2020-12-15 18:53:37 +0300
commit5a637e9d369264d109d560300bc376800570b8c8 (patch)
treeb76b7c7d1f269aa4a83f55bd862c923deb1622e2 /src/node_env_var.cc
parent6837a6de9760fcff8ad106009538b0c5cebd1967 (diff)
src: remove empty name check in node_env_var.cc
The empty name check has been removed since this has landed: https://github.com/libuv/libuv/pull/2473 PR-URL: https://github.com/nodejs/node/pull/36133 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_env_var.cc')
-rw-r--r--src/node_env_var.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_env_var.cc b/src/node_env_var.cc
index 45f2967f4b0..e6d9573ca7c 100644
--- a/src/node_env_var.cc
+++ b/src/node_env_var.cc
@@ -179,9 +179,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
for (int i = 0; i < count; i++) {
#ifdef _WIN32
// If the key starts with '=' it is a hidden environment variable.
- // The '\0' check is a workaround for the bug behind
- // https://github.com/libuv/libuv/pull/2473 and can be removed later.
- if (items[i].name[0] == '=' || items[i].name[0] == '\0') continue;
+ if (items[i].name[0] == '=') continue;
#endif
MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name);
if (str.IsEmpty()) {