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 4d2d6de commit a352178Copy full SHA for a352178
src/node_worker.cc
@@ -561,7 +561,7 @@ void Worker::New(const FunctionCallbackInfo<Value>& args) {
561
THROW_ERR_OPERATION_FAILED(env, "Failed to copy environment variables");
562
}
563
564
- if (args[1]->IsObject() || args[2]->IsArray()) {
+ if (args[1]->IsNull() || args[1]->IsObject() || args[2]->IsArray()) {
565
per_isolate_opts.reset(new PerIsolateOptions());
566
567
HandleEnvOptions(per_isolate_opts->per_env, [&env_vars](const char* name) {
0 commit comments