From a352178f3288d70dc1373d954303af4be2bb7c7c Mon Sep 17 00:00:00 2001 From: semimikoh Date: Wed, 18 Mar 2026 16:32:25 +0900 Subject: [PATCH] worker: parse NODE_OPTIONS when env option is not provided --- src/node_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_worker.cc b/src/node_worker.cc index c8fb93c9313aca..9781f1a1d2c39d 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -561,7 +561,7 @@ void Worker::New(const FunctionCallbackInfo& args) { THROW_ERR_OPERATION_FAILED(env, "Failed to copy environment variables"); } - if (args[1]->IsObject() || args[2]->IsArray()) { + if (args[1]->IsNull() || args[1]->IsObject() || args[2]->IsArray()) { per_isolate_opts.reset(new PerIsolateOptions()); HandleEnvOptions(per_isolate_opts->per_env, [&env_vars](const char* name) {