Skip to content

Commit 8c36168

Browse files
committed
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`. PR-URL: #49639 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 6ccb15f commit 8c36168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let cwdCounter;
101101

102102
const environmentData = new SafeMap();
103103

104-
// SharedArrayBuffers can be disabled with --no-harmony-sharedarraybuffer.
104+
// SharedArrayBuffers can be disabled with --enable-sharedarraybuffer-per-context.
105105
if (isMainThread && SharedArrayBuffer !== undefined) {
106106
cwdCounter = new Uint32Array(new SharedArrayBuffer(4));
107107
const originalChdir = process.chdir;

test/parallel/test-worker-no-sab.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Flags: --no-harmony-sharedarraybuffer
1+
// Flags: --enable-sharedarraybuffer-per-context
22

33
'use strict';
44

0 commit comments

Comments
 (0)