diff --git a/src/node_options.cc b/src/node_options.cc index 2f0d1a9ad7ed04..92d3483c439536 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -355,7 +355,6 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { "experimental ES Module support in vm module", &EnvironmentOptions::experimental_vm_modules, kAllowedInEnvironment); - AddOption("--experimental-worker", "", NoOp{}, kAllowedInEnvironment); #ifdef NODE_REPORT AddOption("--experimental-report", "enable report generation", diff --git a/test/parallel/test-process-env-allowed-flags-are-documented.js b/test/parallel/test-process-env-allowed-flags-are-documented.js index f356f88fe9c740..9377f503e97ed5 100644 --- a/test/parallel/test-process-env-allowed-flags-are-documented.js +++ b/test/parallel/test-process-env-allowed-flags-are-documented.js @@ -86,7 +86,6 @@ const undocumented = difference(process.allowedNodeEnvironmentFlags, // Remove intentionally undocumented options. assert(undocumented.delete('--debug-arraybuffer-allocations')); assert(undocumented.delete('--es-module-specifier-resolution')); -assert(undocumented.delete('--experimental-worker')); assert(undocumented.delete('--no-node-snapshot')); assert(undocumented.delete('--loader'));