Skip to content

Commit 174ca27

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`.
1 parent 61e265a commit 174ca27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ let cwdCounter;
9999

100100
const environmentData = new SafeMap();
101101

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

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

Lines changed: 1 addition & 1 deletion
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)