From 487c1b5424a0ca45dc10a17748c690e7f9ff0de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 20 Apr 2023 13:01:09 +0200 Subject: [PATCH] test: update flag to disable SharedArrayBuffer `--no-harmony-sharedarraybuffer` was removed from V8 but it's still possible to disable the feature with `--enable-sharedarraybuffer-per-context`. --- lib/internal/worker.js | 2 +- test/parallel/test-worker-no-sab.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/worker.js b/lib/internal/worker.js index 0d56486c72bc6b..bd5649da12baf0 100644 --- a/lib/internal/worker.js +++ b/lib/internal/worker.js @@ -99,7 +99,7 @@ let cwdCounter; const environmentData = new SafeMap(); -// SharedArrayBuffers can be disabled with --no-harmony-sharedarraybuffer. +// SharedArrayBuffers can be disabled with --enable-sharedarraybuffer-per-context. if (isMainThread && SharedArrayBuffer !== undefined) { cwdCounter = new Uint32Array(new SharedArrayBuffer(4)); const originalChdir = process.chdir; diff --git a/test/parallel/test-worker-no-sab.js b/test/parallel/test-worker-no-sab.js index 3721795671a140..e96c987484a7d6 100644 --- a/test/parallel/test-worker-no-sab.js +++ b/test/parallel/test-worker-no-sab.js @@ -1,4 +1,4 @@ -// Flags: --no-harmony-sharedarraybuffer +// Flags: --enable-sharedarraybuffer-per-context 'use strict';