diff options
59 files changed, 19 insertions, 89 deletions
diff --git a/benchmark/misc/startup.js b/benchmark/misc/startup.js index 1350cd291e..c1c893b001 100644 --- a/benchmark/misc/startup.js +++ b/benchmark/misc/startup.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { script: ['benchmark/fixtures/require-cachable', 'test/fixtures/semicolon'], mode: ['process', 'worker'] }, { - flags: ['--expose-internals', '--experimental-worker'] // for workers + flags: ['--expose-internals'] }); function spawnProcess(script) { diff --git a/benchmark/worker/echo.js b/benchmark/worker/echo.js index 32c4bddf7d..3e729d0e26 100644 --- a/benchmark/worker/echo.js +++ b/benchmark/worker/echo.js @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, { payload: ['string', 'object'], sendsPerBroadcast: [1, 10], n: [1e5] -}, { flags: ['--experimental-worker'] }); +}); const workerPath = path.resolve(__dirname, '..', 'fixtures', 'echo.worker.js'); diff --git a/doc/api/cli.md b/doc/api/cli.md index eaad9c83e4..977a0fd1f5 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -104,13 +104,6 @@ added: v9.6.0 Enable experimental ES Module support in the `vm` module. -### `--experimental-worker` -<!-- YAML -added: v10.5.0 ---> - -Enable experimental worker threads using the `worker_threads` module. - ### `--force-fips` <!-- YAML added: v6.0.0 @@ -620,7 +613,6 @@ Node.js options that are allowed are: - `--experimental-modules` - `--experimental-repl-await` - `--experimental-vm-modules` -- `--experimental-worker` - `--force-fips` - `--icu-data-dir` - `--inspect` diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index d6c396d3ac..82fb46e017 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -6,7 +6,7 @@ The `worker` module provides a way to create multiple environments running on independent threads, and to create message channels between them. It -can be accessed using the `--experimental-worker` flag and: +can be accessed using: ```js const worker = require('worker_threads'); diff --git a/doc/node.1 b/doc/node.1 index 66933066bc..1ea88e21c0 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -94,9 +94,6 @@ keyword support in REPL. .It Fl -experimental-vm-modules Enable experimental ES module support in VM module. . -.It Fl -experimental-worker -Enable experimental worker threads using worker_threads module. -. .It Fl -force-fips Force FIPS-compliant crypto on startup (Cannot be disabled from script code). diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 93fb186574..879de1bc80 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -253,8 +253,7 @@ if (config.exposeInternals) { }; NativeModule.isInternal = function(id) { - return id.startsWith('internal/') || - (id === 'worker_threads' && !config.experimentalWorker); + return id.startsWith('internal/'); }; } diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index e229d2a2c6..5ffbdc3820 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -187,9 +187,7 @@ function startup() { setupQueueMicrotask(); } - if (getOptionValue('--experimental-worker')) { - setupDOMException(); - } + setupDOMException(); // On OpenBSD process.execPath will be relative unless we // get the full path before process.execPath is used. diff --git a/lib/internal/modules/cjs/helpers.js b/lib/internal/modules/cjs/helpers.js index fcb536c3df..1a2a91c509 100644 --- a/lib/internal/modules/cjs/helpers.js +++ b/lib/internal/modules/cjs/helpers.js @@ -9,8 +9,6 @@ const { CHAR_HASH, } = require('internal/constants'); -const { getOptionValue } = require('internal/options'); - // Invoke with makeRequireFunction(module) where |module| is the Module object // to use as the context for the require() function. function makeRequireFunction(mod) { @@ -100,14 +98,9 @@ const builtinLibs = [ 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'http2', 'https', 'net', 'os', 'path', 'perf_hooks', 'punycode', 'querystring', 'readline', 'repl', 'stream', 'string_decoder', 'tls', 'trace_events', 'tty', 'url', 'util', - 'v8', 'vm', 'zlib' + 'v8', 'vm', 'worker_threads', 'zlib' ]; -if (getOptionValue('--experimental-worker')) { - builtinLibs.push('worker_threads'); - builtinLibs.sort(); -} - if (typeof internalBinding('inspector').open === 'function') { builtinLibs.push('inspector'); builtinLibs.sort(); diff --git a/src/node_config.cc b/src/node_config.cc index 4fd4b1a53b..c244d1d9ff 100644 --- a/src/node_config.cc +++ b/src/node_config.cc @@ -85,9 +85,6 @@ static void Initialize(Local<Object> target, if (env->options()->experimental_vm_modules) READONLY_TRUE_PROPERTY(target, "experimentalVMModules"); - if (env->options()->experimental_worker) - READONLY_TRUE_PROPERTY(target, "experimentalWorker"); - if (env->options()->experimental_repl_await) READONLY_TRUE_PROPERTY(target, "experimentalREPLAwait"); diff --git a/src/node_options.cc b/src/node_options.cc index aa82d57f0a..b225acb1e0 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -109,10 +109,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { "experimental ES Module support in vm module", &EnvironmentOptions::experimental_vm_modules, kAllowedInEnvironment); - AddOption("--experimental-worker", - "experimental threaded Worker support", - &EnvironmentOptions::experimental_worker, - kAllowedInEnvironment); + AddOption("--experimental-worker", "", NoOp{}, kAllowedInEnvironment); AddOption("--expose-internals", "", &EnvironmentOptions::expose_internals); AddOption("--http-parser", "Select which HTTP parser to use; either 'legacy' or 'llhttp' " diff --git a/src/node_options.h b/src/node_options.h index 5668df421a..beecc4ca84 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -96,7 +96,6 @@ class EnvironmentOptions : public Options { bool experimental_modules = false; bool experimental_repl_await = false; bool experimental_vm_modules = false; - bool experimental_worker = false; bool expose_internals = false; std::string http_parser = "llhttp"; bool no_deprecation = false; diff --git a/test/abort/test-addon-uv-handle-leak.js b/test/abort/test-addon-uv-handle-leak.js index 87affeebf2..58061b0532 100644 --- a/test/abort/test-addon-uv-handle-leak.js +++ b/test/abort/test-addon-uv-handle-leak.js @@ -36,8 +36,7 @@ if (process.argv[2] === 'child') { binding.leakHandle(0x42); `, { eval: true }); } else { - const child = cp.spawnSync(process.execPath, - ['--experimental-worker', __filename, 'child']); + const child = cp.spawnSync(process.execPath, [__filename, 'child']); const stderr = child.stderr.toString(); assert.strictEqual(child.stdout.toString(), ''); diff --git a/test/addons/hello-world/test-worker.js b/test/addons/hello-world/test-worker.js index f989c738c8..2effcb4fa4 100644 --- a/test/addons/hello-world/test-worker.js +++ b/test/addons/hello-world/test-worker.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../../common'); const assert = require('assert'); diff --git a/test/addons/worker-addon/test.js b/test/addons/worker-addon/test.js index 2f4bb512fc..b6d962c086 100644 --- a/test/addons/worker-addon/test.js +++ b/test/addons/worker-addon/test.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../../common'); const assert = require('assert'); @@ -11,7 +10,6 @@ if (process.argv[2] === 'child') { new Worker(`require(${JSON.stringify(binding)});`, { eval: true }); } else { const proc = child_process.spawnSync(process.execPath, [ - '--experimental-worker', __filename, 'child' ]); diff --git a/test/parallel/test-async-wrap-missing-method.js b/test/parallel/test-async-wrap-missing-method.js index 72d6d9fdf3..038a77fba6 100644 --- a/test/parallel/test-async-wrap-missing-method.js +++ b/test/parallel/test-async-wrap-missing-method.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-heapdump-worker.js b/test/parallel/test-heapdump-worker.js index 02b989c6b3..06679964a2 100644 --- a/test/parallel/test-heapdump-worker.js +++ b/test/parallel/test-heapdump-worker.js @@ -1,4 +1,4 @@ -// Flags: --expose-internals --experimental-worker +// Flags: --expose-internals 'use strict'; require('../common'); const { validateSnapshotNodes } = require('../common/heap'); diff --git a/test/parallel/test-module-cjs-helpers.js b/test/parallel/test-module-cjs-helpers.js index 8e50ecd314..ccf95f3e81 100644 --- a/test/parallel/test-module-cjs-helpers.js +++ b/test/parallel/test-module-cjs-helpers.js @@ -1,5 +1,5 @@ 'use strict'; -// Flags: --expose-internals --experimental-worker +// Flags: --expose-internals require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-trace-events-api-worker-disabled.js b/test/parallel/test-trace-events-api-worker-disabled.js index 6140d3a83c..eb85a5c2ae 100644 --- a/test/parallel/test-trace-events-api-worker-disabled.js +++ b/test/parallel/test-trace-events-api-worker-disabled.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js b/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js index adae50057e..87ce617e8e 100644 --- a/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js +++ b/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-trace-events-worker-metadata.js b/test/parallel/test-trace-events-worker-metadata.js index e672aeefd7..4600ba3f7e 100644 --- a/test/parallel/test-trace-events-worker-metadata.js +++ b/test/parallel/test-trace-events-worker-metadata.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); @@ -15,8 +14,7 @@ if (isMainThread) { process.chdir(tmpdir.path); const proc = cp.spawn(process.execPath, - [ '--experimental-worker', - '--trace-event-categories', 'node', + [ '--trace-event-categories', 'node', '-e', CODE ]); proc.once('exit', common.mustCall(() => { assert(fs.existsSync(FILE_NAME)); diff --git a/test/parallel/test-v8-coverage.js b/test/parallel/test-v8-coverage.js index e1520a0411..a7a318c34d 100644 --- a/test/parallel/test-v8-coverage.js +++ b/test/parallel/test-v8-coverage.js @@ -87,7 +87,6 @@ function nextdir() { { const coverageDirectory = path.join(tmpdir.path, nextdir()); const output = spawnSync(process.execPath, [ - '--experimental-worker', require.resolve('../fixtures/v8-coverage/worker') ], { env: { ...process.env, NODE_V8_COVERAGE: coverageDirectory } }); assert.strictEqual(output.status, 0); diff --git a/test/parallel/test-worker-cleanup-handles.js b/test/parallel/test-worker-cleanup-handles.js index 2fd11398da..855e581eee 100644 --- a/test/parallel/test-worker-cleanup-handles.js +++ b/test/parallel/test-worker-cleanup-handles.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-debug.js b/test/parallel/test-worker-debug.js index 2340c233a1..8726d2a031 100644 --- a/test/parallel/test-worker-debug.js +++ b/test/parallel/test-worker-debug.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); @@ -154,9 +153,9 @@ async function testBasicWorkerDebug(session, post) { await workerSession.post('Debugger.enable'); await workerSession.post('Runtime.enable'); await workerSession.waitForBreakAfterCommand( - 'Runtime.runIfWaitingForDebugger', __filename, 2); + 'Runtime.runIfWaitingForDebugger', __filename, 1); await workerSession.waitForBreakAfterCommand( - 'Debugger.resume', __filename, 27); // V8 line number is zero-based + 'Debugger.resume', __filename, 26); // V8 line number is zero-based assert.strictEqual(await consolePromise, workerMessage); workerSession.post('Debugger.resume'); await Promise.all([worker, detached, contextEvents]); diff --git a/test/parallel/test-worker-dns-terminate.js b/test/parallel/test-worker-dns-terminate.js index 8526f73987..381c211a88 100644 --- a/test/parallel/test-worker-dns-terminate.js +++ b/test/parallel/test-worker-dns-terminate.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const { Worker } = require('worker_threads'); diff --git a/test/parallel/test-worker-esmodule.js b/test/parallel/test-worker-esmodule.js index de4657452c..33788c1422 100644 --- a/test/parallel/test-worker-esmodule.js +++ b/test/parallel/test-worker-esmodule.js @@ -1,4 +1,4 @@ -// Flags: --experimental-worker --experimental-modules +// Flags: --experimental-modules 'use strict'; const common = require('../common'); const fixtures = require('../common/fixtures'); diff --git a/test/parallel/test-worker-exit-code.js b/test/parallel/test-worker-exit-code.js index f09b834f85..6107cd0316 100644 --- a/test/parallel/test-worker-exit-code.js +++ b/test/parallel/test-worker-exit-code.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-invalid-workerdata.js b/test/parallel/test-worker-invalid-workerdata.js index d0cb1753eb..08fd78bdc0 100644 --- a/test/parallel/test-worker-invalid-workerdata.js +++ b/test/parallel/test-worker-invalid-workerdata.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-memory.js b/test/parallel/test-worker-memory.js index c70f12c7b3..56b06858dd 100644 --- a/test/parallel/test-worker-memory.js +++ b/test/parallel/test-worker-memory.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-channel-sharedarraybuffer.js b/test/parallel/test-worker-message-channel-sharedarraybuffer.js index 86335fb38b..220aa978b1 100644 --- a/test/parallel/test-worker-message-channel-sharedarraybuffer.js +++ b/test/parallel/test-worker-message-channel-sharedarraybuffer.js @@ -1,4 +1,4 @@ -// Flags: --expose-gc --experimental-worker +// Flags: --expose-gc 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-message-channel.js b/test/parallel/test-worker-message-channel.js index 03cc3549a8..8f66ef87e6 100644 --- a/test/parallel/test-worker-message-channel.js +++ b/test/parallel/test-worker-message-channel.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-port-arraybuffer.js b/test/parallel/test-worker-message-port-arraybuffer.js index 85b5d07c63..247efa3fdf 100644 --- a/test/parallel/test-worker-message-port-arraybuffer.js +++ b/test/parallel/test-worker-message-port-arraybuffer.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-port-drain.js b/test/parallel/test-worker-message-port-drain.js index 4fcb3da25e..6eca13e3b7 100644 --- a/test/parallel/test-worker-message-port-drain.js +++ b/test/parallel/test-worker-message-port-drain.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; require('../common'); diff --git a/test/parallel/test-worker-message-port-message-port-transferring.js b/test/parallel/test-worker-message-port-message-port-transferring.js index 32d997b9dd..b4f5726665 100644 --- a/test/parallel/test-worker-message-port-message-port-transferring.js +++ b/test/parallel/test-worker-message-port-message-port-transferring.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-port-transfer-closed.js b/test/parallel/test-worker-message-port-transfer-closed.js index 32de1af1f9..d8ec04cbd2 100644 --- a/test/parallel/test-worker-message-port-transfer-closed.js +++ b/test/parallel/test-worker-message-port-transfer-closed.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-message-port-transfer-self.js b/test/parallel/test-worker-message-port-transfer-self.js index 6b8addf022..f076d3cb70 100644 --- a/test/parallel/test-worker-message-port-transfer-self.js +++ b/test/parallel/test-worker-message-port-transfer-self.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-message-port-transfer-target.js b/test/parallel/test-worker-message-port-transfer-target.js index 8e6354d826..0b1d537bd3 100644 --- a/test/parallel/test-worker-message-port-transfer-target.js +++ b/test/parallel/test-worker-message-port-transfer-target.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-message-port-wasm-module.js b/test/parallel/test-worker-message-port-wasm-module.js index 922d8b11a3..b1aa522dc4 100644 --- a/test/parallel/test-worker-message-port-wasm-module.js +++ b/test/parallel/test-worker-message-port-wasm-module.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-port-wasm-threads.js b/test/parallel/test-worker-message-port-wasm-threads.js index 90b18cd759..7eda780234 100644 --- a/test/parallel/test-worker-message-port-wasm-threads.js +++ b/test/parallel/test-worker-message-port-wasm-threads.js @@ -1,4 +1,4 @@ -// Flags: --experimental-worker --experimental-wasm-threads +// Flags: --experimental-wasm-threads 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-message-port.js b/test/parallel/test-worker-message-port.js index 995868e9a7..47a8ddf665 100644 --- a/test/parallel/test-worker-message-port.js +++ b/test/parallel/test-worker-message-port.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-messageport-transfer-terminate.js b/test/parallel/test-worker-messageport-transfer-terminate.js index 13a30b5c54..dddf91e3f3 100644 --- a/test/parallel/test-worker-messageport-transfer-terminate.js +++ b/test/parallel/test-worker-messageport-transfer-terminate.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; require('../common'); const { Worker, MessageChannel } = require('worker_threads'); diff --git a/test/parallel/test-worker-nexttick-terminate.js b/test/parallel/test-worker-nexttick-terminate.js index 804285710b..269509178f 100644 --- a/test/parallel/test-worker-nexttick-terminate.js +++ b/test/parallel/test-worker-nexttick-terminate.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const { Worker } = require('worker_threads'); diff --git a/test/parallel/test-worker-onmessage-not-a-function.js b/test/parallel/test-worker-onmessage-not-a-function.js index 9142c19b32..df07353075 100644 --- a/test/parallel/test-worker-onmessage-not-a-function.js +++ b/test/parallel/test-worker-onmessage-not-a-function.js @@ -3,7 +3,6 @@ // listener from holding the event loop open. This test confirms that // functionality. -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const { Worker, parentPort } = require('worker_threads'); diff --git a/test/parallel/test-worker-onmessage.js b/test/parallel/test-worker-onmessage.js index 2ae3d90f85..47f6324aad 100644 --- a/test/parallel/test-worker-onmessage.js +++ b/test/parallel/test-worker-onmessage.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-parent-port-ref.js b/test/parallel/test-worker-parent-port-ref.js index 48963f320f..0772d1c860 100644 --- a/test/parallel/test-worker-parent-port-ref.js +++ b/test/parallel/test-worker-parent-port-ref.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const assert = require('assert'); const common = require('../common'); diff --git a/test/parallel/test-worker-relative-path-double-dot.js b/test/parallel/test-worker-relative-path-double-dot.js index ecd294a4d3..ff3ca84e69 100644 --- a/test/parallel/test-worker-relative-path-double-dot.js +++ b/test/parallel/test-worker-relative-path-double-dot.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const path = require('path'); const assert = require('assert'); diff --git a/test/parallel/test-worker-relative-path.js b/test/parallel/test-worker-relative-path.js index 30d2a5dde3..e961447faa 100644 --- a/test/parallel/test-worker-relative-path.js +++ b/test/parallel/test-worker-relative-path.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const path = require('path'); const assert = require('assert'); diff --git a/test/parallel/test-worker-stdio.js b/test/parallel/test-worker-stdio.js index 366f9e694d..d4c008713b 100644 --- a/test/parallel/test-worker-stdio.js +++ b/test/parallel/test-worker-stdio.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-syntax-error-file.js b/test/parallel/test-worker-syntax-error-file.js index b1f8fd5f68..87ed6c3c92 100644 --- a/test/parallel/test-worker-syntax-error-file.js +++ b/test/parallel/test-worker-syntax-error-file.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const fixtures = require('../common/fixtures'); diff --git a/test/parallel/test-worker-syntax-error.js b/test/parallel/test-worker-syntax-error.js index d548880539..86c20ab29d 100644 --- a/test/parallel/test-worker-syntax-error.js +++ b/test/parallel/test-worker-syntax-error.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-type-check.js b/test/parallel/test-worker-type-check.js index 43013bc538..9647556035 100644 --- a/test/parallel/test-worker-type-check.js +++ b/test/parallel/test-worker-type-check.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker-uncaught-exception-async.js b/test/parallel/test-worker-uncaught-exception-async.js index 9ad4aace23..8126c89192 100644 --- a/test/parallel/test-worker-uncaught-exception-async.js +++ b/test/parallel/test-worker-uncaught-exception-async.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-uncaught-exception.js b/test/parallel/test-worker-uncaught-exception.js index 40996eccb3..43a41ca30d 100644 --- a/test/parallel/test-worker-uncaught-exception.js +++ b/test/parallel/test-worker-uncaught-exception.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-unsupported-path.js b/test/parallel/test-worker-unsupported-path.js index 71999eb5fe..6dcfd230dc 100644 --- a/test/parallel/test-worker-unsupported-path.js +++ b/test/parallel/test-worker-unsupported-path.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const path = require('path'); diff --git a/test/parallel/test-worker-unsupported-things.js b/test/parallel/test-worker-unsupported-things.js index 7946e9cf1c..66b10ad157 100644 --- a/test/parallel/test-worker-unsupported-things.js +++ b/test/parallel/test-worker-unsupported-things.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-worker-workerdata-sharedarraybuffer.js b/test/parallel/test-worker-workerdata-sharedarraybuffer.js index 09de361236..4e3d508ac9 100644 --- a/test/parallel/test-worker-workerdata-sharedarraybuffer.js +++ b/test/parallel/test-worker-workerdata-sharedarraybuffer.js @@ -1,4 +1,4 @@ -// Flags: --expose-gc --experimental-worker +// Flags: --expose-gc 'use strict'; const common = require('../common'); diff --git a/test/parallel/test-worker.js b/test/parallel/test-worker.js index 6cd64fce9b..9c38895548 100644 --- a/test/parallel/test-worker.js +++ b/test/parallel/test-worker.js @@ -1,4 +1,3 @@ -// Flags: --experimental-worker 'use strict'; const common = require('../common'); const assert = require('assert'); diff --git a/test/wpt/test-console.js b/test/wpt/test-console.js index 15fb80fc96..7b23fe8d3e 100644 --- a/test/wpt/test-console.js +++ b/test/wpt/test-console.js @@ -1,6 +1,6 @@ 'use strict'; -// Flags: --expose-internals --experimental-worker +// Flags: --expose-internals require('../common'); const { WPTRunner } = require('../common/wpt'); diff --git a/test/wpt/test-url.js b/test/wpt/test-url.js index fbbea24532..8734452940 100644 --- a/test/wpt/test-url.js +++ b/test/wpt/test-url.js @@ -1,6 +1,6 @@ 'use strict'; -// Flags: --expose-internals --experimental-worker +// Flags: --expose-internals require('../common'); const { WPTRunner } = require('../common/wpt'); diff --git a/tools/test.py b/tools/test.py index 0a2ca193d7..633c347e74 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1588,7 +1588,6 @@ def Main(): if options.worker: run_worker = join(workspace, "tools", "run-worker.js") - options.node_args.append('--experimental-worker') options.node_args.append(run_worker) shell = abspath(options.shell) |