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';