diff options
Diffstat (limited to 'src/node_env_var.cc')
-rw-r--r-- | src/node_env_var.cc | 3 |
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>(); |