We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3bdc5 commit 5168cebCopy full SHA for 5168ceb
src/node_dotenv.cc
@@ -67,14 +67,14 @@ std::vector<Dotenv::env_file_data> Dotenv::GetDataFromArgs(
67
}
68
69
Maybe<void> Dotenv::SetEnvironment(node::Environment* env) {
70
+ Local<Value> name;
71
+ Local<Value> val;
72
auto context = env->context();
73
auto env_vars = env->env_vars();
74
75
for (const auto& entry : store_) {
76
auto existing = env_vars->Get(entry.first.data());
77
if (!existing.has_value()) {
- Local<Value> name;
- Local<Value> val;
78
if (!ToV8Value(context, entry.first).ToLocal(&name) ||
79
!ToV8Value(context, entry.second).ToLocal(&val)) {
80
return Nothing<void>();
0 commit comments