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:
authorChristopher Beeson <christopher@bl-ue.com>2020-04-19 19:48:12 +0300
committerAnna Henningsen <anna@addaleax.net>2020-04-27 20:31:11 +0300
commit20e0cc0592270bac03852120ec05f4b483b05ccb (patch)
tree570d0117523f3eae9b3c80192247cc987230cf94 /src/node_env_var.cc
parent3ccdf8ad228379703e721c179339c332add0842c (diff)
src: do not compare against wide characters
PR-URL: https://github.com/nodejs/node/pull/32921 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'src/node_env_var.cc')
-rw-r--r--src/node_env_var.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_env_var.cc b/src/node_env_var.cc
index 8fed12367f8..8eaf79538a2 100644
--- a/src/node_env_var.cc
+++ b/src/node_env_var.cc
@@ -121,7 +121,7 @@ void RealEnvStore::Set(Isolate* isolate,
node::Utf8Value val(isolate, value);
#ifdef _WIN32
- if (key.length() > 0 && key[0] == L'=') return;
+ if (key.length() > 0 && key[0] == '=') return;
#endif
uv_os_setenv(*key, *val);
DateTimeConfigurationChangeNotification(isolate, key);
@@ -139,7 +139,7 @@ int32_t RealEnvStore::Query(const char* key) const {
}
#ifdef _WIN32
- if (key[0] == L'=') {
+ if (key[0] == '=') {
return static_cast<int32_t>(v8::ReadOnly) |
static_cast<int32_t>(v8::DontDelete) |
static_cast<int32_t>(v8::DontEnum);