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:
Diffstat (limited to 'src/node_env_var.cc')
-rw-r--r--src/node_env_var.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_env_var.cc b/src/node_env_var.cc
index 23eaad48586..1a162888fd3 100644
--- a/src/node_env_var.cc
+++ b/src/node_env_var.cc
@@ -179,8 +179,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
// https://github.com/libuv/libuv/pull/2473 and can be removed later.
if (items[i].name[0] == '=' || items[i].name[0] == '\0') continue;
#endif
- MaybeLocal<String> str = String::NewFromUtf8(
- isolate, items[i].name, NewStringType::kNormal);
+ MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name);
if (str.IsEmpty()) {
isolate->ThrowException(ERR_STRING_TOO_LONG(isolate));
return Local<Array>();