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 bb73c10 commit 0545b5fCopy full SHA for 0545b5f
1 file changed
src/node_worker.cc
@@ -559,7 +559,7 @@ void Worker::New(const FunctionCallbackInfo<Value>& args) {
559
env_vars = env->env_vars();
560
}
561
562
- if (args[1]->IsObject() || args[2]->IsArray()) {
+ if (args[1]->IsNull() || args[1]->IsObject() || args[2]->IsArray()) {
563
per_isolate_opts.reset(new PerIsolateOptions());
564
565
HandleEnvOptions(per_isolate_opts->per_env, [&env_vars](const char* name) {
0 commit comments