From 7bb7b9a61f677a6104934e0cd6ce18f36b24b432 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 9 Jan 2019 02:09:52 +0100 Subject: [PATCH] worker: set `--experimental-worker` always This is similar to https://github.com/nodejs/node/pull/25361 in functionality, but allows avoiding some backporting pain for v11.x. PR-URL: https://github.com/nodejs/node/pull/25404 Refs: https://github.com/nodejs/node/pull/25361 Reviewed-By: Ruben Bridgewater --- src/node_options.h | 2 +- test/parallel/test-bootstrap-modules.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_options.h b/src/node_options.h index 40eae6f7f8f358..0b02733929682e 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -95,7 +95,7 @@ class EnvironmentOptions : public Options { bool experimental_modules = false; bool experimental_repl_await = false; bool experimental_vm_modules = false; - bool experimental_worker = false; + bool experimental_worker = true; bool expose_internals = false; std::string http_parser = #ifdef NODE_EXPERIMENTAL_HTTP_DEFAULT diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js index 272dec40060624..ebc31ba9c2848e 100644 --- a/test/parallel/test-bootstrap-modules.js +++ b/test/parallel/test-bootstrap-modules.js @@ -9,7 +9,7 @@ const common = require('../common'); const assert = require('assert'); const isMainThread = common.isMainThread; -const kMaxModuleCount = isMainThread ? 56 : 78; +const kMaxModuleCount = isMainThread ? 57 : 78; assert(list.length <= kMaxModuleCount, `Total length: ${list.length}\n` + list.join('\n')